Examples of URINode


Examples of com.franz.agbase.URINode

      // Load RDF data into a named graph
      if ( graphUri.equals("source") ) {
        loadRDFWithTiming(ts, filename, graphUri);
      }
      else {
        URINode g = ts.createURI(graphUri);
        loadRDFWithTiming(ts, filename, g);
      }
    }
    else {
      loadRDFWithTiming(ts, filename);
View Full Code Here

Examples of puc.tecweb.trust.layer.rdf.types.URINode

    if (object instanceof org.ontoware.rdf2go.model.node.BlankNode)
      return new BlankNode(object.toString());
    else if (object instanceof org.ontoware.rdf2go.model.node.URI||
        object instanceof URIImpl)
      return new URINode(object.toString());
    else if (object instanceof DatatypeLiteral)
    {
      DatatypeLiteral dl = (DatatypeLiteral)object;
      return new LiteralNode(JavaXSD.xsd2java(dl.getValue(),dl.getDatatype().toString()));
    }
View Full Code Here

Examples of puc.tecweb.trust.layer.rdf.types.URINode

    else
      return null;
  }

  public URINode getPredicate() {
    return new URINode(statement.getPredicate().toString());
  }
View Full Code Here

Examples of puc.tecweb.trust.layer.rdf.types.URINode

    if (subject instanceof org.ontoware.rdf2go.model.node.BlankNode)
      return new BlankNode(subject.toString());
    else if (subject instanceof org.ontoware.rdf2go.model.node.URI ||
        subject instanceof URIImpl)
      return new URINode(subject.toString());
    else
    {
      return null;
    }
  }
View Full Code Here

Examples of puc.tecweb.trust.layer.rdf.types.URINode

    Node object = statement.getObject().asNode();

    if (object.isBlank())
      return new BlankNode(object.getBlankNodeId().toString());
    else if (object.isURI())
      return new URINode(object.getURI());
    else if (object.isLiteral()) {
      return new LiteralNode(object.getLiteralValue());
    } else
      return null;
  }
View Full Code Here

Examples of puc.tecweb.trust.layer.rdf.types.URINode

    } else
      return null;
  }

  public URINode getPredicate() {
    return new URINode(statement.getPredicate().getURI());
  }
View Full Code Here

Examples of puc.tecweb.trust.layer.rdf.types.URINode

    Node subject = statement.getSubject().asNode();

    if (subject.isBlank())
      return new BlankNode(subject.getBlankNodeId().toString());
    else if (subject.isURI())
      return new URINode(subject.getURI());
    else
      return null;
  }
View Full Code Here

Examples of puc.tecweb.trust.layer.rdf.types.URINode

      return new BlankNode(object.asNode().getBlankNodeId().toString());
    else if (object.isURIResource()) {
      Model model = statement.getModel();
      String uri = object.asNode().getURI();

      return new URINode(model.shortForm(uri));
    } else if (object.isLiteral()) {
      return new LiteralNode(object.asNode().getLiteralValue());
    } else
      return null;
  }
View Full Code Here

Examples of puc.tecweb.trust.layer.rdf.types.URINode

    } else
      return null;
  }

  public URINode getPredicate() {
    return new URINode(statement.getModel().shortForm(
        statement.getPredicate().getURI()));
  }
View Full Code Here

Examples of puc.tecweb.trust.layer.rdf.types.URINode

    Resource subject = statement.getSubject();

    if (subject.isAnon())
      return new BlankNode(subject.asNode().getBlankNodeId().toString());
    else if (subject.isURIResource())
      return new URINode(statement.getModel().shortForm(
          subject.asNode().getURI()));
    else
      return null;
  }
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.