public static URIReference createResource(URI uri, boolean validate) throws TrippiException { try { return RDFFactories.createResource(uri, validate); } catch (GraphElementFactoryException e) { throw new TrippiException(e.getMessage(), e); } }
public static Literal createLiteral(String lexicalValue, URI datatypeURI) throws TrippiException { try { return RDFFactories.createLiteral(lexicalValue, datatypeURI); } catch (GraphElementFactoryException e) { throw new TrippiException(e.getMessage(), e); } }
public static BlankNode createResource() throws TrippiException { try { return RDFFactories.createResource(); } catch (GraphElementFactoryException e) { throw new TrippiException(e.getMessage(), e); } }
public static Triple create(SubjectNode subject, PredicateNode predicate, ObjectNode object) throws TrippiException { try { return RDFFactories.createTriple(subject, predicate, object); } catch (GraphElementFactoryException e) { throw new TrippiException(e.getMessage(), e); } }
// the node should start with one following: < " ' _ public static Node parse(String n) throws TrippiException { try { return s_factory.parse(n); } catch (GraphElementFactoryException e) { throw new TrippiException(e.getMessage(), e); } catch (URISyntaxException e) { throw new TrippiException(e.getMessage(), e); } }