Beispiel #1
0
 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);
   }
 }
Beispiel #2
0
 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);
   }
 }
Beispiel #3
0
 public static BlankNode createResource() throws TrippiException {
   try {
     return RDFFactories.createResource();
   } catch (GraphElementFactoryException e) {
     throw new TrippiException(e.getMessage(), e);
   }
 }
Beispiel #4
0
 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);
   }
 }
Beispiel #5
0
 // 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);
   }
 }