Examples of RDFDataSet


Examples of org.data2semantics.tools.rdf.RDFDataSet

    List<PropertyPredictionDataSetParameters> dataSetsParams = new ArrayList<PropertyPredictionDataSetParameters>();
    //List<BinaryPropertyPredictionDataSetParameters> dataSetsParams = new ArrayList<BinaryPropertyPredictionDataSetParameters>();

   
    RDFDataSet testSetA = new RDFFileDataSet("D:\\workspaces\\datasets\\aifb\\aifb-fixed_complete.rdf", RDFFormat.RDFXML);
    RDFDataSet testSetB = new RDFFileDataSet("D:\\workspaces\\datasets\\aifb\\aifb-fixed_no_schema.n3", RDFFormat.N3);
    RDFDataSet testSetC = new RDFFileDataSet("D:\\workspaces\\datasets\\eswc-2012-complete.rdf", RDFFormat.RDFXML)
   


    List<String> bl = new ArrayList<String>();
    bl.add("http://swrc.ontoware.org/ontology#affiliation");
View Full Code Here

Examples of org.data2semantics.tools.rdf.RDFDataSet

   
    List<String> bl = new ArrayList<String>();
    bl.add("http://swrc.ontoware.org/ontology#affiliation");
    bl.add("http://swrc.ontoware.org/ontology#employs");
   
    RDFDataSet testSet = new RDFFileDataSet("D:\\workspaces\\datasets\\aifb\\aifb-fixed_complete.rdf", RDFFormat.RDFXML);
    LinkPredictionDataSet set = DataSetFactory.createLinkPredictonDataSet(testSet, "http://swrc.ontoware.org/ontology#Person", "http://swrc.ontoware.org/ontology#ResearchGroup", "http://swrc.ontoware.org/ontology#affiliation", bl, 2, false, false);
   
   
   
   
View Full Code Here

Examples of org.lilian.graphs.data.RDFDataSet

    RDFFormat format = RDFFormat.forFileName(file);
   
    if(format == null)
      throw new RuntimeException("RDF file "+file+" not recognized");
     
    RDFDataSet testSet = new RDFFileDataSet(file, format);

    List<Statement> triples = testSet.getFullGraph()
   
    return RDF.createDirectedGraph(triples, null, null);
   
  }
View Full Code Here

Examples of org.lilian.graphs.data.RDFDataSet

      environment = new File(out);
     
      Graph<String> graph = null;
      if(type == Type.RDFXML)
      {
        RDFDataSet testSet = new RDFFileDataSet(data, RDFFormat.RDFXML);

        List<Statement> triples = testSet.getFullGraph()
       
        graph = RDF.createDirectedGraph(triples, null, null);
       
      } else if(type == Type.TURTLE)
      {
        RDFDataSet testSet = new RDFFileDataSet(data, RDFFormat.TURTLE);

        List<Statement> triples = testSet.getFullGraph()
       
        graph = RDF.createDirectedGraph(triples, null, null);
      }
     
      Clusterer<String> cl = new GraphKMedoids<String>(NUM_CLUSTERS);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.