Print

Print


Thanks, Jeff. I'll get that running. Does the service run simply over 
test data, or does it make use of the vocabularies in the PREFIXs for 
defined domains and ranges? As I recall, SPARQL doesn't do any 
inferencing, but will it pay attention to domains and ranges inherent in 
the ontology? (I've mainly used SPARQL with data that has been acted on 
with a reasoner.)

If my question doesn't make sense, I'll just test it out when I get some 
data created, and have gone back over the SPARQL documentation.

kc


On 11/6/14 7:28 AM, Young,Jeff (OR) wrote:
>
> Karen,
>
> If you put your Turtle data onto the Web at a URL (e.g. using 
> DropBox), you could use this general-purpose SPARQL service to 
> experiment on it and create sharable links to live queries.
>
> http://sparql.org/sparql.html
>
> Put the URL for your dropbox data file into the “Target graph URI” 
> field and enter your query in the text area at the top.
>
> If you’re doing CONSTRUCT queries, you can get back Turtle by 
> selecting Output: Text from the dropdown. For example:
>
> http://sparql.org/sparql?query=DESCRIBE+%3Chttp%3A%2F%2Fwww.wikidata.org%2Fentity%2FQ8016%3E&default-graph-uri=http%3A%2F%2Fwww.wikidata.org%2Fentity%2FQ8016&output=text&stylesheet=%2Fxml-to-html.xsl
>
> The service isn’t always available, like now L, but it’s handy when it is.
>
> I keep one of these running on my Workstation so it’s always 
> available. The installation instructions are pretty easy:
>
> http://jena.apache.org/documentation/serving_data/#download-fuseki
>
> Jeff
>
> *From:*Bibliographic Framework Transition Initiative Forum 
> [mailto:[log in to unmask]] *On Behalf Of *Karen Coyle
> *Sent:* Thursday, November 06, 2014 10:01 AM
> *To:* [log in to unmask]
> *Subject:* Re: [BIBFRAME] [Topic] Types
>
> On 11/5/14 3:10 PM, Karen Coyle wrote:
>
>         If the graph union includes the ontology, and the sparql query
>         includes  "?S ?P :Work" , you /will/ get bf:workTitle
>         rdfs:domain :Work  .
>
>
>     I was speaking of the case in which bf:workTitle rdfs:domain
>     bf:Title.
>
>
> I always need to work these things out looking at actual triples, and 
> thanks to insomnia, this is what I came up with last night:
>
> <X> rdf:type bf:Work .
> <X> bf:workTitle _:aa .
> _:aa rdf:type bf:Title .
> _:aa bf:titleValue "Here's my title" .
>
> So SPARQL query something like:
>
> SELECT ?s ?p ?o
> Where {
>    ?s a bf:Work }
>
> Would you not get:
>
> <X> rdf:type bf:Work .
> <X> bf:workTitle _:aa .
>
> If the bf:workTitle were of type bf:Work instead of bf:Title, you 
> would get:
>
> <X> rdf:type bf:Work .
> <X> bf:workTitle _:aa .
> _:aa rdf:type bf:Work .
> _:aa bf:titleValue "Here's my title" .
>
> Does that clear it up?
>
> And I wish to gawd that there was some easier to use software that you 
> could throw these kinds of tests to. I might be able to create a file 
> to test it out in Protege but it's a big pain. However, having such a 
> test environment would make it easy to try things out and see the 
> consequences.
>
> kd
>
> -- 
> Karen Coyle
> [log in to unmask]  <mailto:[log in to unmask]>  http://kcoyle.net
> m: +1-510-435-8234
> skype: kcoylenet/+1-510-984-3600

-- 
Karen Coyle
[log in to unmask] http://kcoyle.net
m: +1-510-435-8234
skype: kcoylenet/+1-510-984-3600