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