[ https://issues.apache.org/jira/browse/JENA-626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15054907#comment-15054907 ]
ASF GitHub Bot commented on JENA-626: ------------------------------------- Github user samaitra commented on the pull request: https://github.com/apache/jena/pull/95#issuecomment-164247261 Resolved merge conflict in SPARQL_Update and ran system testing on MAC OSX. Server -------- ./fuseki-server --update --mem /ds [2015-12-13 16:19:38] Server INFO Dataset: in-memory [2015-12-13 16:19:41] Server INFO Fuseki 2.3.1-SNAPSHOT 2015-11-30T19:12:52+0000 [2015-12-13 16:19:42] Config INFO FUSEKI_HOME=/Users/home/git/jena/jena-fuseki2/apache-jena-fuseki/target/apache-jena-fuseki-2.3.1-SNAPSHOT [2015-12-13 16:19:42] Config INFO FUSEKI_BASE=/Users/home/git/jena/jena-fuseki2/apache-jena-fuseki/target/apache-jena-fuseki-2.3.1-SNAPSHOT/run [2015-12-13 16:19:42] Servlet INFO Initializing Shiro environment [2015-12-13 16:19:42] Config INFO Shiro file: file:///Users/saikat/git/jena/jena-fuseki2/apache-jena-fuseki/target/apache-jena-fuseki-2.3.1-SNAPSHOT/run/shiro.ini [2015-12-13 16:19:44] Config INFO Template file: templates/config-mem [2015-12-13 16:19:54] Config INFO Register: /ds [2015-12-13 16:19:55] Server INFO Started 2015/12/13 16:19:55 IST on port 3030 [2015-12-13 16:21:11] Fuseki INFO [1] PUT http://localhost:3030/ds/data?default [2015-12-13 16:21:11] Fuseki INFO [1] PUT /ds :: 'data' :: [text/turtle charset=utf-8] ? default [2015-12-13 16:21:12] Fuseki INFO [1] Body: Content-Length=2083, Content-Type=text/turtle, Charset=utf-8;charset=utf-8 => Turtle : Count=17 Triples=17 Quads=0 [2015-12-13 16:21:12] Fuseki INFO [1] 200 OK (508 ms) [2015-12-13 16:21:34] Fuseki INFO [2] GET http://localhost:3030/ds/data?default [2015-12-13 16:21:34] Fuseki INFO [2] GET /ds :: 'data' :: <none> ? default [2015-12-13 16:21:34] Fuseki INFO [2] 200 OK (266 ms) [2015-12-13 16:21:50] Fuseki INFO [3] GET http://localhost:3030/ds/query?query=SELECT+%2A+%7B%3Fs+%3Fp+%3Fo%7D [2015-12-13 16:21:50] Fuseki INFO [3] GET /ds :: 'query' :: <none> ? query=SELECT+%2A+%7B%3Fs+%3Fp+%3Fo%7D [2015-12-13 16:21:50] Fuseki INFO [3] Query = SELECT * {?s ?p ?o} [2015-12-13 16:21:50] Fuseki INFO [3] Query = SELECT * {?s ?p ?o} [2015-12-13 16:21:50] Fuseki INFO [3] exec/select [2015-12-13 16:21:51] Fuseki INFO [3] 200 OK (629 ms) [2015-12-13 16:22:20] Fuseki INFO [4] POST http://localhost:3030/ds/update [2015-12-13 16:22:20] Fuseki INFO [4] POST /ds :: 'update' :: [application/sparql-update] ? [2015-12-13 16:22:20] Fuseki INFO [4] 204 No Content (209 ms) [2015-12-13 16:22:39] Fuseki INFO [5] GET http://localhost:3030/ds/query?query=SELECT+%2A+%7B%3Fs+%3Fp+%3Fo%7D [2015-12-13 16:22:39] Fuseki INFO [5] GET /ds :: 'query' :: <none> ? query=SELECT+%2A+%7B%3Fs+%3Fp+%3Fo%7D [2015-12-13 16:22:39] Fuseki INFO [5] Query = SELECT * {?s ?p ?o} [2015-12-13 16:22:39] Fuseki INFO [5] Query = SELECT * {?s ?p ?o} [2015-12-13 16:22:39] Fuseki INFO [5] exec/select [2015-12-13 16:22:39] Fuseki INFO [5] 200 OK (105 ms) Client -------- $./s-put http://localhost:3030/ds/data default Data/books.ttl $./s-get http://localhost:3030/ds/data default @prefix : <http://example.org/book/> . @prefix ns: <http://example.org/ns#> . @prefix vcard: <http://www.w3.org/2001/vcard-rdf/3.0#> . @prefix dc: <http://purl.org/dc/elements/1.1/> . :book5 dc:creator "J.K. Rowling" ; dc:title "Harry Potter and the Order of the Phoenix" . :book3 dc:creator _:b0 ; dc:title "Harry Potter and the Prisoner Of Azkaban" . :book1 dc:creator "J.K. Rowling" ; dc:title "Harry Potter and the Philosopher's Stone" . :book6 dc:creator "J.K. Rowling" ; dc:title "Harry Potter and the Half-Blood Prince" . :book4 dc:title "Harry Potter and the Goblet of Fire" . _:b0 vcard:FN "J.K. Rowling" ; vcard:N [ vcard:Family "Rowling" ; vcard:Given "Joanna" ] . :book2 dc:creator _:b0 ; dc:title "Harry Potter and the Chamber of Secrets" . :book7 dc:creator "J.K. Rowling" ; dc:title "Harry Potter and the Deathly Hallows" . $ ./s-query --service http://localhost:3030/ds/query 'SELECT * {?s ?p ?o}' { "head": { "vars": [ "s" , "p" , "o" ] } , "results": { "bindings": [ { "s": { "type": "uri" , "value": "http://example.org/book/book5" } , "p": { "type": "uri" , "value": "http://purl.org/dc/elements/1.1/title" } , "o": { "type": "literal" , "value": "Harry Potter and the Order of the Phoenix" } } , { "s": { "type": "uri" , "value": "http://example.org/book/book5" } , "p": { "type": "uri" , "value": "http://purl.org/dc/elements/1.1/creator" } , "o": { "type": "literal" , "value": "J.K. Rowling" } } , { "s": { "type": "uri" , "value": "http://example.org/book/book3" } , "p": { "type": "uri" , "value": "http://purl.org/dc/elements/1.1/title" } , "o": { "type": "literal" , "value": "Harry Potter and the Prisoner Of Azkaban" } } , { "s": { "type": "uri" , "value": "http://example.org/book/book3" } , "p": { "type": "uri" , "value": "http://purl.org/dc/elements/1.1/creator" } , "o": { "type": "bnode" , "value": "b0" } } , { "s": { "type": "uri" , "value": "http://example.org/book/book1" } , "p": { "type": "uri" , "value": "http://purl.org/dc/elements/1.1/title" } , "o": { "type": "literal" , "value": "Harry Potter and the Philosopher's Stone" } } , { "s": { "type": "uri" , "value": "http://example.org/book/book1" } , "p": { "type": "uri" , "value": "http://purl.org/dc/elements/1.1/creator" } , "o": { "type": "literal" , "value": "J.K. Rowling" } } , { "s": { "type": "uri" , "value": "http://example.org/book/book6" } , "p": { "type": "uri" , "value": "http://purl.org/dc/elements/1.1/title" } , "o": { "type": "literal" , "value": "Harry Potter and the Half-Blood Prince" } } , { "s": { "type": "uri" , "value": "http://example.org/book/book6" } , "p": { "type": "uri" , "value": "http://purl.org/dc/elements/1.1/creator" } , "o": { "type": "literal" , "value": "J.K. Rowling" } } , { "s": { "type": "uri" , "value": "http://example.org/book/book4" } , "p": { "type": "uri" , "value": "http://purl.org/dc/elements/1.1/title" } , "o": { "type": "literal" , "value": "Harry Potter and the Goblet of Fire" } } , { "s": { "type": "bnode" , "value": "b0" } , "p": { "type": "uri" , "value": "http://www.w3.org/2001/vcard-rdf/3.0#FN" } , "o": { "type": "literal" , "value": "J.K. Rowling" } } , { "s": { "type": "bnode" , "value": "b0" } , "p": { "type": "uri" , "value": "http://www.w3.org/2001/vcard-rdf/3.0#N" } , "o": { "type": "bnode" , "value": "b1" } } , { "s": { "type": "uri" , "value": "http://example.org/book/book2" } , "p": { "type": "uri" , "value": "http://purl.org/dc/elements/1.1/title" } , "o": { "type": "literal" , "value": "Harry Potter and the Chamber of Secrets" } } , { "s": { "type": "uri" , "value": "http://example.org/book/book2" } , "p": { "type": "uri" , "value": "http://purl.org/dc/elements/1.1/creator" } , "o": { "type": "bnode" , "value": "b0" } } , { "s": { "type": "uri" , "value": "http://example.org/book/book7" } , "p": { "type": "uri" , "value": "http://purl.org/dc/elements/1.1/title" } , "o": { "type": "literal" , "value": "Harry Potter and the Deathly Hallows" } } , { "s": { "type": "uri" , "value": "http://example.org/book/book7" } , "p": { "type": "uri" , "value": "http://purl.org/dc/elements/1.1/creator" } , "o": { "type": "literal" , "value": "J.K. Rowling" } } , { "s": { "type": "bnode" , "value": "b1" } , "p": { "type": "uri" , "value": "http://www.w3.org/2001/vcard-rdf/3.0#Family" } , "o": { "type": "literal" , "value": "Rowling" } } , { "s": { "type": "bnode" , "value": "b1" } , "p": { "type": "uri" , "value": "http://www.w3.org/2001/vcard-rdf/3.0#Given" } , "o": { "type": "literal" , "value": "Joanna" } } ] } } $ s-update --service http://localhost:3030/ds/update 'CLEAR DEFAULT' -bash: s-update: command not found $ ./s-update --service http://localhost:3030/ds/update 'CLEAR DEFAULT' $ ./s-query --service http://localhost:3030/ds/query 'SELECT * {?s ?p ?o}' { "head": { "vars": [ "s" , "p" , "o" ] } , "results": { "bindings": [ ] } } > SPARQL Query Caching > -------------------- > > Key: JENA-626 > URL: https://issues.apache.org/jira/browse/JENA-626 > Project: Apache Jena > Issue Type: Improvement > Reporter: Andy Seaborne > Assignee: Saikat Maitra > Labels: java, linked_data, rdf, sparql > > Add a caching layer to Fuseki to cache the results of SPARQL Query requests. > This cache should allow for in-memory and disk-based caching, configuration > and cache management, and coordination with data modification. -- This message was sent by Atlassian JIRA (v6.3.4#6332)