Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

Commit

Permalink
Ignore study citations. Part of issue #12.
Browse files Browse the repository at this point in the history
  • Loading branch information
KonradHoeffner committed Mar 5, 2021
1 parent c97be68 commit d581111
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions scripts/export/diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,21 @@ def query(clazz):
FILTER(?s=?x OR ?o=?x)
}"""

QUERIES = [
"""CONSTRUCT {?s ?p ?o.}
{
?x a [rdfs:subClassOf hito:Citation].
[a hito:SoftwareProduct] ?y ?x. # related to a software product, not a study citation
?s ?p ?o.
FILTER(?s=?x OR ?o=?x)
}"""
]

outputBase = "tmp/"
if os.path.exists(outputBase):
shutil.rmtree(outputBase)
for clazz in CLASSES:
q = query(clazz)
for q in QUERIES:
#q = query(clazz)
parameters = {"query": q, "format": "text/plain"}
resp = requests.get(ENDPOINT,params=parameters)
if(resp.status_code!=200):
Expand Down

0 comments on commit d581111

Please sign in to comment.