Last active
August 29, 2015 14:10
-
-
Save ericmoritz/e7c63a7b137f0df05228 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PREFIX foaf: <http://xmlns.com/foaf/0.1/> | |
PREFIX doap: <http://usefulinc.com/ns/doap#> | |
SELECT ?project ?maintainer WHERE { | |
?p doap:name ?project . | |
?p doap:maintainer ?m . | |
?m foaf:name ?maintainer . | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ~/Projects/rdf/jena/apache-jena-2.12.1/bin/sparql --data http://ldf-server-python.herokuapp.com/ --query example.sparql | |
-------------------------------- | |
| project | maintainer | | |
================================ | |
| "ldf-server" | "Eric Moritz" | | |
-------------------------------- | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ time ./node_modules/ldf-client/bin/ldf-client http://ldf-server-python.herokuapp.com/ example.sparql -l debug | |
[Thu Nov 20 2014 01:23:19 GMT-0500 (EST)] INFO HttpClient Retrieving http://ldf-server-python.herokuapp.com/ | |
[[Thu Nov 20 2014 01:23:19 GMT-0500 (EST)] INFO HttpClient Retrieving http://ldf-server-python.herokuapp.com/?p=http%3A%2F%2Fxmlns.com%2Ffoaf%2F0.1%2Fname | |
[Thu Nov 20 2014 01:23:19 GMT-0500 (EST)] INFO HttpClient Retrieving http://ldf-server-python.herokuapp.com/?p=http%3A%2F%2Fusefulinc.com%2Fns%2Fdoap%23name | |
[Thu Nov 20 2014 01:23:19 GMT-0500 (EST)] INFO HttpClient Retrieving http://ldf-server-python.herokuapp.com/?p=http%3A%2F%2Fusefulinc.com%2Fns%2Fdoap%23maintainer | |
real 0m0.382s | |
user 0m0.240s | |
sys 0m0.041s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @ericmoritz,
Thanks for starting this!
The reason the LDF client does not give a result, is that the triple pattern fragments are not yet complete.
Triple Pattern Fragments consist of data, metadata, and controls.
As we can see from the debug log above, the controls are working: the client is able to retrieve other fragments from the start fragment. However, the metadata—which is necessary for the client to execute queries efficiently—is missing:
We need a triple such as the following:
Note that this count does not have to be exact; an approximation is sufficient.