Package org.openrdf.model

Examples of org.openrdf.model.ValueFactory.createStatement()


      con.add(vf.createStatement(person1, RDF.TYPE, advisorType));
   
      //university
      URI university = vf.createURI("http://example.org/UMBC");
      con.add(vf.createStatement(university,RDF.TYPE, vf.createURI("http://xmlns.com/foaf/0.1/Organization")));
      con.add(vf.createStatement(university,RDFS.LABEL,vf.createLiteral("University of Maryland Baltimore County","en")));
   
      URI memberProp = vf.createURI("http://xmlns.com/foaf/0.1/member");
      con.add(vf.createStatement(person1,memberProp,university));
      con.add(vf.createStatement(person2,memberProp,university));
      con.add(vf.createStatement(person3,memberProp,university));
View Full Code Here


      URI university = vf.createURI("http://example.org/UMBC");
      con.add(vf.createStatement(university,RDF.TYPE, vf.createURI("http://xmlns.com/foaf/0.1/Organization")));
      con.add(vf.createStatement(university,RDFS.LABEL,vf.createLiteral("University of Maryland Baltimore County","en")));
   
      URI memberProp = vf.createURI("http://xmlns.com/foaf/0.1/member");
      con.add(vf.createStatement(person1,memberProp,university));
      con.add(vf.createStatement(person2,memberProp,university));
      con.add(vf.createStatement(person3,memberProp,university));
   
      //add advisor
      URI advisorProp = vf.createURI("http://lab.linkeddata.deri.ie/test#advisor");
View Full Code Here

      con.add(vf.createStatement(university,RDF.TYPE, vf.createURI("http://xmlns.com/foaf/0.1/Organization")));
      con.add(vf.createStatement(university,RDFS.LABEL,vf.createLiteral("University of Maryland Baltimore County","en")));
   
      URI memberProp = vf.createURI("http://xmlns.com/foaf/0.1/member");
      con.add(vf.createStatement(person1,memberProp,university));
      con.add(vf.createStatement(person2,memberProp,university));
      con.add(vf.createStatement(person3,memberProp,university));
   
      //add advisor
      URI advisorProp = vf.createURI("http://lab.linkeddata.deri.ie/test#advisor");
      con.add(vf.createStatement(person2,advisorProp,person1));
View Full Code Here

      con.add(vf.createStatement(university,RDFS.LABEL,vf.createLiteral("University of Maryland Baltimore County","en")));
   
      URI memberProp = vf.createURI("http://xmlns.com/foaf/0.1/member");
      con.add(vf.createStatement(person1,memberProp,university));
      con.add(vf.createStatement(person2,memberProp,university));
      con.add(vf.createStatement(person3,memberProp,university));
   
      //add advisor
      URI advisorProp = vf.createURI("http://lab.linkeddata.deri.ie/test#advisor");
      con.add(vf.createStatement(person2,advisorProp,person1));
      con.add(vf.createStatement(person3,advisorProp,advisor));
View Full Code Here

      con.add(vf.createStatement(person2,memberProp,university));
      con.add(vf.createStatement(person3,memberProp,university));
   
      //add advisor
      URI advisorProp = vf.createURI("http://lab.linkeddata.deri.ie/test#advisor");
      con.add(vf.createStatement(person2,advisorProp,person1));
      con.add(vf.createStatement(person3,advisorProp,advisor));
     
      //second root node data
      URI adviseProp = vf.createURI("http://lab.linkeddata.deri.ie/test#advise");
      con.add(vf.createStatement(person1, adviseProp, person2));
View Full Code Here

      con.add(vf.createStatement(person3,memberProp,university));
   
      //add advisor
      URI advisorProp = vf.createURI("http://lab.linkeddata.deri.ie/test#advisor");
      con.add(vf.createStatement(person2,advisorProp,person1));
      con.add(vf.createStatement(person3,advisorProp,advisor));
     
      //second root node data
      URI adviseProp = vf.createURI("http://lab.linkeddata.deri.ie/test#advise");
      con.add(vf.createStatement(person1, adviseProp, person2));
      con.add(vf.createStatement(advisor, adviseProp, person3));
View Full Code Here

      con.add(vf.createStatement(person2,advisorProp,person1));
      con.add(vf.createStatement(person3,advisorProp,advisor));
     
      //second root node data
      URI adviseProp = vf.createURI("http://lab.linkeddata.deri.ie/test#advise");
      con.add(vf.createStatement(person1, adviseProp, person2));
      con.add(vf.createStatement(advisor, adviseProp, person3));
   
      //
      URI scienceCollege = vf.createURI("http://example.org/ScienceCollege");
      URI collegeProp = vf.createURI("http://lab.linkeddata.deri.ie/test#college");
View Full Code Here

      con.add(vf.createStatement(person3,advisorProp,advisor));
     
      //second root node data
      URI adviseProp = vf.createURI("http://lab.linkeddata.deri.ie/test#advise");
      con.add(vf.createStatement(person1, adviseProp, person2));
      con.add(vf.createStatement(advisor, adviseProp, person3));
   
      //
      URI scienceCollege = vf.createURI("http://example.org/ScienceCollege");
      URI collegeProp = vf.createURI("http://lab.linkeddata.deri.ie/test#college");
      con.add(vf.createStatement(person2, collegeProp, scienceCollege));
View Full Code Here

      con.add(vf.createStatement(advisor, adviseProp, person3));
   
      //
      URI scienceCollege = vf.createURI("http://example.org/ScienceCollege");
      URI collegeProp = vf.createURI("http://lab.linkeddata.deri.ie/test#college");
      con.add(vf.createStatement(person2, collegeProp, scienceCollege));
      con.add(vf.createStatement(person3, collegeProp, scienceCollege));
     
      return model;
    }finally{
      con.close();
View Full Code Here

   
      //
      URI scienceCollege = vf.createURI("http://example.org/ScienceCollege");
      URI collegeProp = vf.createURI("http://lab.linkeddata.deri.ie/test#college");
      con.add(vf.createStatement(person2, collegeProp, scienceCollege));
      con.add(vf.createStatement(person3, collegeProp, scienceCollege));
     
      return model;
    }finally{
      con.close();
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.