Package org.apache.marmotta.client.clients

Examples of org.apache.marmotta.client.clients.SPARQLClient.update()


    @Test
    public void testSparqlUpdate() throws Exception {
        SPARQLClient client = new SPARQLClient(config);

        try {
          client.update(
              "INSERT DATA { \n" +
              "    <http://www.dajobe.org/foaf.rdf#i> <http://purl.org/dc/elements/1.1/date> \"1999-04-01T00:00:00\" . \n" +
              "    <http://www.w3.org/People/Berners-Lee/card#i> <http://purl.org/dc/elements/1.1/date> \"1998-05-03T00:00:00\" .  \n" +
              "    <http://www.w3.org/People/Connolly/#me> <http://purl.org/dc/elements/1.1/date> \"2001-02-08T00:00:00\"  \n" +
              "}");
View Full Code Here


    @Test
    public void testSparqlUpdateGraph() throws Exception {
        SPARQLClient client = new SPARQLClient(config);

        try {
          client.update(
              "INSERT DATA { \n" +
              "  GRAPH <http://BookStore.com> {  \n" +
              "    <http://www.dajobe.org/foaf.rdf#i> <http://purl.org/dc/elements/1.1/date> \"1999-04-01T00:00:00\" . \n" +
              "    <http://www.w3.org/People/Berners-Lee/card#i> <http://purl.org/dc/elements/1.1/date> \"1998-05-03T00:00:00\" .  \n" +
              "    <http://www.w3.org/People/Connolly/#me> <http://purl.org/dc/elements/1.1/date> \"2001-02-08T00:00:00\"  \n" +
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.