-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
REST API: Get all chapters of a media resource #27
Comments
SPARQL Query: PREFIX linkedtv: <http://data.linkedtv.eu/ontologies/core#>
PREFIX ma: <http://www.w3.org/ns/ma-ont#>
PREFIX nsa: <http://multimedialab.elis.ugent.be/organon/ontologies/ninsuna#>
PREFIX oa: <http://www.w3.org/ns/oa#>
SELECT DISTINCT ?item
WHERE {
?mediafragment ma:isFragmentOf ?mediaresource .
?mediafragment a ma:MediaFragment .
?annotation a oa:Annotation .
?annotation oa:hasBody ?item .
?annotation oa:hasTarget ?mediafragment .
?item a linkedtv:Chapter .
} |
has been realized with the above SPARQL query; retrieves chapters from uncurated annotations; sample call: http://data.linkedtv.eu/mediaresource/adb65e0a-642b-432f-aa86-c296dab0375a/chapter |
What is the purpose of the last triple pattern (?mediafragment nsa:temporalStart ?start ) ? What is the relationship between ?chapter and ?item ? It seems to me you just need one variable |
yes, you're right - thanks for checking! this was indeed a copy / paste error; changed it |
Hi Jan, thanks for this. I will check later myself but: do the results also include the provenance information? It's important for the ET and the player to check whether these are automated or curated chapters. (this basically applies for all the other API calls) Best, Jaap |
Hi Jaap, Best |
There should not be a "standard graph" whatever it means, since all annotations have PROV statements. Creating a different URI pattern for all possible PROV values does not seem a good idea. Why does /mediaresource/{uuid}/chapter/ simply not return ALL chapters with PROV statements telling how the chapter has been created? |
Hi Raphael, this is due to the fact that the ET still saves in a different graph. I will need to update the saving code of the ET to integrate the data in the 'main' LinkedTV graph (still other things were more important up till now). Hmm I guess it makes sense, if I will do this first. In any case, it's necessary to return the prov data for all of the API calls (if applicable). |
GET /mediaresource/{uuid}/chapter
The text was updated successfully, but these errors were encountered: