Package org.dbpedia2sql.model

Examples of org.dbpedia2sql.model.LinkTriple



    } else {
      Resource value = (Resource)object;
      //      System.out.println("OBJ " + value.toN3());
      return new LinkTriple(subject.toN3(), predicate.toN3(), value.toN3());
    }
  }
View Full Code Here


    TriplesReader typesReader = new TriplesReader("/home/clement/osm/dbpedia-to-sql/data/types/types_fr.nt.gz");
    int i = 0;
    while (true) {
      Triple t = typesReader.nextTriple();
      if (t == null) break;
      LinkTriple lt = (LinkTriple)t;
      lt.setSubject(URISimplifier.simplify(lt.getSubject()));
      types.addTypeDeclaration((LinkTriple)t);
      if (++i % 10000 == 0) {
        System.out.println("Read " + i + " types");
      }
    }
View Full Code Here

TOP

Related Classes of org.dbpedia2sql.model.LinkTriple

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.