Package org.openrdf.model

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


      con.add(vf.createStatement(person2,vf.createURI("http://xmlns.com/foaf/0.1/name"),vf.createLiteral("Bryan Welch")));
      con.add(vf.createStatement(person2,vf.createURI("http://xmlns.com/foaf/0.1/mbox"),vf.createURI("mailto:bryan.welch@bis.gsi.gov.uk")));
     
      URI unit2 = vf.createURI("http://data.bis.gov.uk/data/organogram/2010-08-26/legal-services-group");
     
      con.add(vf.createStatement(unit2, vf.createURI("http://reference.data.gov.uk/def/central-government/hasPost"), post2));
      con.add(vf.createStatement(post2, vf.createURI("http://reference.data.gov.uk/def/central-government/postIn"), unit2));
      con.add(vf.createStatement(post2, vf.createURI("http://reference.data.gov.uk/def/central-government/heldBy"), person2));
     
      return repo;
    }finally{
View Full Code Here


      con.add(vf.createStatement(person2,vf.createURI("http://xmlns.com/foaf/0.1/mbox"),vf.createURI("mailto:bryan.welch@bis.gsi.gov.uk")));
     
      URI unit2 = vf.createURI("http://data.bis.gov.uk/data/organogram/2010-08-26/legal-services-group");
     
      con.add(vf.createStatement(unit2, vf.createURI("http://reference.data.gov.uk/def/central-government/hasPost"), post2));
      con.add(vf.createStatement(post2, vf.createURI("http://reference.data.gov.uk/def/central-government/postIn"), unit2));
      con.add(vf.createStatement(post2, vf.createURI("http://reference.data.gov.uk/def/central-government/heldBy"), person2));
     
      return repo;
    }finally{
      con.close();
View Full Code Here

     
      URI unit2 = vf.createURI("http://data.bis.gov.uk/data/organogram/2010-08-26/legal-services-group");
     
      con.add(vf.createStatement(unit2, vf.createURI("http://reference.data.gov.uk/def/central-government/hasPost"), post2));
      con.add(vf.createStatement(post2, vf.createURI("http://reference.data.gov.uk/def/central-government/postIn"), unit2));
      con.add(vf.createStatement(post2, vf.createURI("http://reference.data.gov.uk/def/central-government/heldBy"), person2));
     
      return repo;
    }finally{
      con.close();
    }
View Full Code Here

      URI person2 = addFoafPerson(vf, con, "http://lab.linkeddata.deri.ie/test#lushan-han", "Lushan Han", "lushan@umbc.edu");
      URI person3 = addFoafPerson(vf, con, "http://lab.linkeddata.deri.ie/test#wenjia-li", "Wenjia Li", "wenjia@umbc.edu");
   
      //office numbers
      URI officeNumberProp = vf.createURI("http://lab.linkeddata.deri.ie/test#officeNumber");
      con.add(vf.createStatement(person1, officeNumberProp, vf.createLiteral(329)));
      con.add(vf.createStatement(person2, officeNumberProp, vf.createLiteral(377)));
      con.add(vf.createStatement(person3, officeNumberProp, vf.createLiteral(377)));
   
      //advisor
      URI advisor = vf.createURI("http://lab.linkeddata.deri.ie/test#anupam-joshi");
View Full Code Here

      URI person3 = addFoafPerson(vf, con, "http://lab.linkeddata.deri.ie/test#wenjia-li", "Wenjia Li", "wenjia@umbc.edu");
   
      //office numbers
      URI officeNumberProp = vf.createURI("http://lab.linkeddata.deri.ie/test#officeNumber");
      con.add(vf.createStatement(person1, officeNumberProp, vf.createLiteral(329)));
      con.add(vf.createStatement(person2, officeNumberProp, vf.createLiteral(377)));
      con.add(vf.createStatement(person3, officeNumberProp, vf.createLiteral(377)));
   
      //advisor
      URI advisor = vf.createURI("http://lab.linkeddata.deri.ie/test#anupam-joshi");
      con.add(vf.createStatement(advisor, vf.createURI("http://xmlns.com/foaf/0.1/name"), vf.createLiteral("Anupam Joshi")));
View Full Code Here

   
      //office numbers
      URI officeNumberProp = vf.createURI("http://lab.linkeddata.deri.ie/test#officeNumber");
      con.add(vf.createStatement(person1, officeNumberProp, vf.createLiteral(329)));
      con.add(vf.createStatement(person2, officeNumberProp, vf.createLiteral(377)));
      con.add(vf.createStatement(person3, officeNumberProp, vf.createLiteral(377)));
   
      //advisor
      URI advisor = vf.createURI("http://lab.linkeddata.deri.ie/test#anupam-joshi");
      con.add(vf.createStatement(advisor, vf.createURI("http://xmlns.com/foaf/0.1/name"), vf.createLiteral("Anupam Joshi")));
      URI advisorType = vf.createURI("http://lab.linkeddata.deri.ie/test#Advisor");
View Full Code Here

      con.add(vf.createStatement(person2, officeNumberProp, vf.createLiteral(377)));
      con.add(vf.createStatement(person3, officeNumberProp, vf.createLiteral(377)));
   
      //advisor
      URI advisor = vf.createURI("http://lab.linkeddata.deri.ie/test#anupam-joshi");
      con.add(vf.createStatement(advisor, vf.createURI("http://xmlns.com/foaf/0.1/name"), vf.createLiteral("Anupam Joshi")));
      URI advisorType = vf.createURI("http://lab.linkeddata.deri.ie/test#Advisor");
      con.add(vf.createStatement(advisor, RDF.TYPE, advisorType));
      con.add(vf.createStatement(person1, RDF.TYPE, advisorType));
   
      //university
View Full Code Here

   
      //advisor
      URI advisor = vf.createURI("http://lab.linkeddata.deri.ie/test#anupam-joshi");
      con.add(vf.createStatement(advisor, vf.createURI("http://xmlns.com/foaf/0.1/name"), vf.createLiteral("Anupam Joshi")));
      URI advisorType = vf.createURI("http://lab.linkeddata.deri.ie/test#Advisor");
      con.add(vf.createStatement(advisor, RDF.TYPE, advisorType));
      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")));
View Full Code Here

      //advisor
      URI advisor = vf.createURI("http://lab.linkeddata.deri.ie/test#anupam-joshi");
      con.add(vf.createStatement(advisor, vf.createURI("http://xmlns.com/foaf/0.1/name"), vf.createLiteral("Anupam Joshi")));
      URI advisorType = vf.createURI("http://lab.linkeddata.deri.ie/test#Advisor");
      con.add(vf.createStatement(advisor, RDF.TYPE, advisorType));
      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")));
View Full Code Here

      con.add(vf.createStatement(advisor, RDF.TYPE, advisorType));
      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));
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.