Package puc.tecweb.trust.layer.rdf.types

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


  public AbstractNode getObject() {
    Object object = statement.getObject();

    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)
    {
View Full Code Here


  public AbstractNode getSubject() {
    Object subject = statement.getSubject();

    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
    {
View Full Code Here

      return null;
    }
  }

  public ResourceNode getContext() {
    return new BlankNode(context.toString());
  }
View Full Code Here

  public AbstractNode getObject() {
    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
View Full Code Here

  public AbstractNode getSubject() {
    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

    else
      return null;
  }

  public ResourceNode getContext() {
    return new BlankNode(statement.getGraphName().toString());
  }
View Full Code Here

  public AbstractNode getObject() {
    RDFNode object = statement.getObject();

    if (object.isAnon())
      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));
View Full Code Here

  public AbstractNode getSubject() {
    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

    else
      return null;
  }

  public ResourceNode getContext() {
    return new BlankNode(context.getId().toString());
  }
View Full Code Here

  public AbstractNode getObject() {
    Value object = statement.getObject();

    if (object instanceof BNode)
      return new BlankNode(((BNode) object).getID());
    else if (object instanceof URI)
      return new URINode(((URI) object).getURI());
    else if (object instanceof Literal) {
      Literal literal = (Literal) object;
      String datatype = null;
View Full Code Here

TOP

Related Classes of puc.tecweb.trust.layer.rdf.types.BlankNode

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.