-
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 enrichments based on entity x #31
Comments
SPARQL query: PREFIX linkedtv: <http://data.linkedtv.eu/ontologies/core#>
PREFIX ma: <http://www.w3.org/ns/ma-ont#>
PREFIX oa: <http://www.w3.org/ns/oa#>
PREFIX prov: <http://www.w3.org/ns/prov#>
SELECT DISTINCT ?item
WHERE {
?mediaFragment ma:isFragmentOf ?mediaResource .
?mediaFragment a ma:MediaFragment .
?annotationEntity oa:hasTarget ?mediafragment .
?annotationEntity oa:hasBody ?entity .
?entity a linkedtv:Entity .
?annotationRelResource a oa:Annotation .
?annotationRelResource prov:wasDerivedFrom ?entity .
?annotationRelResource oa:hasBody ?item .
} |
has been realized with the above SPARQL query; sample call http://data.linkedtv.eu/entity/df7f3f31-3b32-4387-9383-2b2f1045e5f6/enrichment |
This triple pattern (?mediafragment linkedtv:hasSubtitle ?subtitle ) seems useless. |
yeah, thanks again (actually I took the (?mediafragment linkedtv:hasSubtitle ?subtitle ) pattern from an example in D2.4 ;-) - was indeed not sure if it's really needed ... |
It's not ... since you don't use ?subtitle later on |
GET /entity/{uuid}/enrichment
Q: is this possible? Does the model support annotations attached entities?
The text was updated successfully, but these errors were encountered: