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

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


        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()));
    }
    else if (object instanceof String || object instanceof LanguageTagLiteral || object instanceof Literal)
    {
      return new LiteralNode(object.toString());
    }
    else
      return null;
  }
View Full Code Here


    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

      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

        if (datatype_uri != null)
          datatype = datatype_uri.getURI();
      }

      return new LiteralNode(JavaXSD.xsd2java(literal.getLabel(),
          datatype));
    } else
      return null;
  }
View Full Code Here

TOP

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

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.