glenrobson / SimpleAnnotationServer

A simple IIIF and Mirador compatible Annotation Server
Apache License 2.0
97 stars 29 forks source link

Fuseki triples #52

Closed doobybug closed 5 years ago

doobybug commented 5 years ago

Hi,

I have been trying to connect Fuseki to view the triple store. Can you add the dataset through the fuseki interface? If so where is the path to the annotations dataset ?

glenrobson commented 5 years ago

Yes you should be able to add the annotations datastore to Fuseki. I have the following guide:

https://github.com/glenrobson/SimpleAnnotationServer/blob/master/doc/FusekiJena.md

Which will hopefully help but you should find the jena data files in the data directory.

doobybug commented 5 years ago

I think I managed to add the annotions datastore but is it possible to query them from the sparql endpoint? Each annotation is showing as a seperate graph

image

glenrobson commented 5 years ago

Ah great it looks like you've got it working. Yes all of the annotations are separate graphs to keep them self contained. You can query them with something similar to:

select ?annoId ?graph where {
   GRAPH ?graph { 
         ?on <http://www.w3.org/ns/oa#hasSource> <http://example.com/canvas/id> .
         ?annoId <http://www.w3.org/ns/oa#hasTarget> ?on 
    } 
}

Does that help?

doobybug commented 5 years ago

Perfect yes...I didn't notice that they were in seperate graphs

glenrobson commented 5 years ago

Thats great news.