mirror of
https://github.com/dnlbauer/django-signposting.git
synced 2026-09-10 22:15:30 +00:00
Create Signposting from RO-Crate (#2)
* improvate jsonld parsing to be compatible with ro-crate * refactoring * example with RO-Crate * bump version --------- Co-authored-by: Daniel Bauer <daniel.bauer@senckenberg.de>
This commit is contained in:
@@ -14,7 +14,21 @@ WHERE {
|
||||
(schema:license | schema:author | schema:creator ) ?value .
|
||||
|
||||
# No incoming edges for ?rootElement
|
||||
FILTER NOT EXISTS { ?s ?p ?rootElement }
|
||||
FILTER NOT EXISTS {
|
||||
?incoming ?p ?rootElement .
|
||||
|
||||
# also allow incoming edges that link entities BACK to the dataset
|
||||
FILTER(?p != schema:isPartOf)
|
||||
FILTER(?p != schema:mainEntityOfPage)
|
||||
FILTER(?p != schema:recordedIn)
|
||||
FILTER(?p != schema:exampleOfWork)
|
||||
FILTER(?p != schema:includedInDataCatalogue)
|
||||
FILTER(?p != schema:subjectOf)
|
||||
FILTER(?p != schema:dataset)
|
||||
|
||||
# allow incoming edges from ro-crate-metadata.json
|
||||
FILTER(CONTAINS(?incoming, "ro-crate-metadata.json")) .
|
||||
}
|
||||
}
|
||||
LIMIT 1
|
||||
""")
|
||||
|
||||
Reference in New Issue
Block a user