Skip to content

Commit

Permalink
fix: use schema instead of dcterms in graph query
Browse files Browse the repository at this point in the history
closes #160
  • Loading branch information
rokroskar committed Jul 17, 2019
1 parent 4f7a90b commit faca93b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/blueprints/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
PREFIX wfprov: <http://purl.org/wf4ever/wfprov#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX schema: <http://schema.org/>
SELECT ?target ?source ?target_label ?source_label
WHERE {{
Expand Down Expand Up @@ -94,7 +95,7 @@ async def lineage(namespace, project, commit_ish=None, path=None):
sparql.setMethod(POST)

filter = [
'?qentity dcterms:isPartOf ?project .',
'?qentity schema:isPartOf|dcterms:isPartOf ?project .',
# TODO filter entities from private projects
'FILTER (?project = <{project_url}>)'.format(project_url=project_url),
]
Expand Down

0 comments on commit faca93b

Please sign in to comment.