Package org.lilian.graphs.data

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


      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

Related Classes of org.lilian.graphs.data.RDFDataSet

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.