Package edu.isi.karma.kr2rml.mapping

Examples of edu.isi.karma.kr2rml.mapping.R2RMLMappingIdentifier


    logger.info(r2rmlURI);
    logger.info(dataType);

    GenericRDFGenerator gRDFGen = new GenericRDFGenerator(null);

    R2RMLMappingIdentifier rmlID = new R2RMLMappingIdentifier(r2rmlURI,
        new URL(r2rmlURI));
    gRDFGen.addModel(rmlID);

    StringWriter sw = new StringWriter();
    PrintWriter pw = new PrintWriter(sw);

    URIFormatter uriFormatter = new URIFormatter();
    KR2RMLRDFWriter outWriter = new N3KR2RMLRDFWriter(uriFormatter, pw);

    String sourceName = r2rmlURI;
    RDFGeneratorRequest request = new RDFGeneratorRequest(rmlID.getName(), sourceName);
    request.addWriter(outWriter);
    request.setInputStream(dataStream);
    request.setDataType(InputType.valueOf(dataType));
    request.setAddProvenance(false);
    request.setMaxNumLines(-1);
View Full Code Here


        bw.close();
   
    GenericRDFGenerator rdfGen = new GenericRDFGenerator(null);

    // Add the models in;
    R2RMLMappingIdentifier modelIdentifier = new R2RMLMappingIdentifier(
        "generic-model", new URL(r2rmlURI));
    rdfGen.addModel(modelIdentifier);

    //String filename = "context/events.json";
    //String contextName = "context/events_context.json";
View Full Code Here

TOP

Related Classes of edu.isi.karma.kr2rml.mapping.R2RMLMappingIdentifier

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.