Skip to content
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

fix ontology definition #161

Merged
merged 1 commit into from
Jul 22, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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