Package edu.isi.karma.kr2rml.planning

Examples of edu.isi.karma.kr2rml.planning.SteinerTreeRootStrategy


      ErrorReport errorReport = new ErrorReport();
      if(rootStrategy == null)
      {
        if(rootTripleMap != null)
        {
          rootStrategy = new UserSpecifiedRootStrategy(rootTripleMap, new SteinerTreeRootStrategy(new WorksheetDepthRootStrategy()));
        }
        else
        {
          rootStrategy = new SteinerTreeRootStrategy(new WorksheetDepthRootStrategy());;
        }
      }
      KR2RMLWorksheetRDFGenerator rdfGen = new KR2RMLWorksheetRDFGenerator(worksheet,
              workspace.getFactory(), workspace.getOntologyManager(), writers,
              addProvenance, rootStrategy, tripleMapToKill, tripleMapToStop, POMToKill,
View Full Code Here


   
    try {
      FileOutputStream fos = new FileOutputStream(new File(avroFileLocalPath));
      AvroKR2RMLRDFWriter writer = new AvroKR2RMLRDFWriter(fos);
      writer.addPrefixes(mapping.getPrefixes());
      RootStrategy strategy = new UserSpecifiedRootStrategy(rootTriplesMapId, new SteinerTreeRootStrategy(new WorksheetDepthRootStrategy()));
      KR2RMLWorksheetRDFGenerator generator = new KR2RMLWorksheetRDFGenerator(worksheet, f, ontMgr, writer,
          false, strategy, mapping, errorReport, selection);
      try {
        generator.generateRDF(true);
        logger.info("RDF written to file.");
View Full Code Here

        url.append(ServletContextParameterMap.getParameterValue(ContextParameter.JSON_PUBLISH_RELATIVE_DIR));
        url.append(contextName);
        writer.setGlobalContext(context, new ContextIdentifier(context.toString(), new URL(url.toString())));
      }
      writer.addPrefixes(mapping.getPrefixes());
      RootStrategy strategy = new UserSpecifiedRootStrategy(rootTriplesMapId, new SteinerTreeRootStrategy(new WorksheetDepthRootStrategy()));
      KR2RMLWorksheetRDFGenerator generator = new KR2RMLWorksheetRDFGenerator(worksheet, f, ontMgr, writer, false, strategy, mapping, errorReport, selection);
      try {
        generator.generateRDF(true);
        logger.info("RDF written to file.");
      } catch (IOException e1) {
View Full Code Here

      Map<TriplesMapGraph, List<String>> graphTriplesMapsProcessingOrder = new HashMap<TriplesMapGraph, List<String>>();
      for(TriplesMapGraph graph : kr2rmlMapping.getAuxInfo().getTriplesMapGraph().getGraphs())
      {
        TriplesMapGraph copyGraph = graph.copyGraph();
        if(null == strategy) {
          strategy = new SteinerTreeRootStrategy(new WorksheetDepthRootStrategy());
        }
        copyGraph.killTriplesMap(tripleMapToKill, strategy);
        copyGraph.stopTriplesMap(tripleMapToStop, strategy);
        copyGraph.killPredicateObjectMap(POMToKill, strategy);
        try{
View Full Code Here

TOP

Related Classes of edu.isi.karma.kr2rml.planning.SteinerTreeRootStrategy

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.