Package org.dbpedia2sql.model

Examples of org.dbpedia2sql.model.DataTriple


      try {
        cleanData = URLDecoder.decode(cleanData, "utf8");
      } catch (IllegalArgumentException e) {}

      if (value.getDatatype() == null) {
        return new DataTriple(subject.toN3(), predicate.toN3(), cleanData, value.getLanguageTag());
      } else if (value.getDatatype().toN3().equals("<http://www.w3.org/2001/XMLSchema#double>")) {
        return new DataTriple(subject.toN3(), predicate.toN3(), Double.parseDouble(value.getData()));
      } else  {
        return new DataTriple(subject.toN3(), predicate.toN3(), cleanData, null);
      }


    } else {
      Resource value = (Resource)object;
View Full Code Here


        currentSubject = s;
        currentProps.clear();
        currentLinks.clear();
      }
      if (next instanceof DataTriple) {
        DataTriple dt = (DataTriple)next;
        URISimplifier.simplify(dt);
        //        System.out.println("SIMPLIFIED TRIPLE --> " + dt.getSubject());
        currentProps.add(dt);
      } else {
        currentLinks.add((LinkTriple)next);
View Full Code Here

TOP

Related Classes of org.dbpedia2sql.model.DataTriple

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.