-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
332 additions
and
216 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
344 changes: 211 additions & 133 deletions
344
object/development/06/formal-competency-questions-testing.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,118 +1,156 @@ | ||
# Formal Competency Questions | ||
## CQ_5.1 | ||
What are the titles of the work `L1-work`? What are their types? | ||
## CQ_6.1 | ||
What are the titles of the work? What are their types? | ||
|
||
```SPARQL | ||
PREFIX ex: <https://w3id.org/dharc/ontology/chad-ap/object/development/05/data/> | ||
PREFIX obj: <https://w3id.org/dharc/ontology/chad-ap/object/development/05/schema/> | ||
PREFIX ex: <https://w3id.org/dharc/ontology/chad-ap/object/development/06/data/> | ||
PREFIX obj: <https://w3id.org/dharc/ontology/chad-ap/object/development/06/schema/> | ||
SELECT ?title ?type ?content | ||
WHERE { | ||
?creation a obj:CreationEvent ; | ||
obj:createsWork ex:L1-work . | ||
ex:L1-work obj:hasTitle ?title . | ||
obj:createsWork ?work . | ||
?work obj:hasTitle ?title . | ||
?title obj:hasType ?type ; | ||
obj:hasContent ?content . | ||
} | ||
``` | ||
## CQ_5.2 | ||
What are the subjects of the works that are not part of any parent work? | ||
## CQ_6.2 | ||
Which work was created and in which period? | ||
|
||
```SPARQL | ||
PREFIX ex: <https://w3id.org/dharc/ontology/chad-ap/object/development/05/data/> | ||
PREFIX obj: <https://w3id.org/dharc/ontology/chad-ap/object/development/05/schema/> | ||
PREFIX ex: <https://w3id.org/dharc/ontology/chad-ap/object/development/06/data/> | ||
PREFIX obj: <https://w3id.org/dharc/ontology/chad-ap/object/development/06/schema/> | ||
SELECT ?work ?subject | ||
SELECT ?work ?start_date ?end_date | ||
WHERE { | ||
?creation a obj:CreationEvent ; | ||
obj:createsWork ?work ; | ||
obj:createsExpression ?expression . | ||
?work a obj:Work . | ||
?expression a obj:Expression ; | ||
obj:isAbout ?subject . | ||
FILTER NOT EXISTS { | ||
?parent obj:hasMember ?work . | ||
} | ||
obj:createsWork ?work ; | ||
obj:hasTimeSpan ?time_span . | ||
?time_span obj:hasStartDate ?start_date ; | ||
obj:hasEndDate ?end_date . | ||
} | ||
``` | ||
|
||
## CQ_5.3 | ||
What are the manifestations of the works which are members of parent works that are marine charts? | ||
## CQ_6.3 | ||
Which works are part of other works? What are the types of the larger works? | ||
|
||
```SPARQL | ||
PREFIX ex: <https://w3id.org/dharc/ontology/chad-ap/object/development/05/data/> | ||
PREFIX obj: <https://w3id.org/dharc/ontology/chad-ap/object/development/05/schema/> | ||
PREFIX ex: <https://w3id.org/dharc/ontology/chad-ap/object/development/06/data/> | ||
PREFIX obj: <https://w3id.org/dharc/ontology/chad-ap/object/development/06/schema/> | ||
SELECT ?manifestation | ||
SELECT ?work ?larger_work ?type | ||
WHERE { | ||
?creation a obj:CreationEvent ; | ||
obj:createsWork ?work ; | ||
obj:createsManifestation ?manifestation . | ||
?parent a obj:ParentWork ; | ||
obj:hasMember ?work ; | ||
obj:hasType obj:marine-chart . | ||
obj:createsWork ?work . | ||
?larger_work a obj:Work ; | ||
obj:hasMember ?work ; | ||
obj:isRealizedIn ?larger_exp . | ||
?larger_exp obj:isEmbodiedIn ?larger_man . | ||
?larger_man obj:hasType ?type . | ||
} | ||
``` | ||
|
||
## CQ_5.4 | ||
What are the parent works of the works that have either "Europa" or "tapiro" as their subject? | ||
## CQ_6.4 | ||
What is the cultural object about? | ||
|
||
```SPARQL | ||
PREFIX ex: <https://w3id.org/dharc/ontology/chad-ap/object/development/05/data/> | ||
PREFIX obj: <https://w3id.org/dharc/ontology/chad-ap/object/development/05/schema/> | ||
PREFIX ex: <https://w3id.org/dharc/ontology/chad-ap/object/development/06/data/> | ||
PREFIX obj: <https://w3id.org/dharc/ontology/chad-ap/object/development/06/schema/> | ||
SELECT ?parent ?work ?subject | ||
SELECT ?expression ?subject | ||
WHERE { | ||
?creation a obj:CreationEvent ; | ||
obj:createsWork ?work ; | ||
obj:createsExpression ?expression . | ||
?parent a obj:ParentWork ; | ||
obj:hasMember ?work . | ||
?creation a obj:CreationEvent ; | ||
obj:createsExpression ?expression . | ||
?expression a obj:Expression ; | ||
obj:isAbout ?subject . | ||
FILTER(?subject == ex:sub-tapiro || | ||
?subject == ex:sub-europa) | ||
obj:isAbout ?subject . | ||
} | ||
``` | ||
|
||
## CQ_5.5 | ||
What are the manifestations that compose another manifestation? | ||
## CQ_6.5 | ||
What is the type of the cultural object? | ||
|
||
```SPARQL | ||
PREFIX ex: <https://w3id.org/dharc/ontology/chad-ap/object/development/05/data/> | ||
PREFIX obj: <https://w3id.org/dharc/ontology/chad-ap/object/development/05/schema/> | ||
PREFIX ex: <https://w3id.org/dharc/ontology/chad-ap/object/development/06/data/> | ||
PREFIX obj: <https://w3id.org/dharc/ontology/chad-ap/object/development/06/schema/> | ||
SELECT ?manifestation1 ?manifestation2 | ||
SELECT ?manifestation ?type | ||
WHERE { | ||
?manifestation1 obj:isComposedOf ?manifestation2 . | ||
?creation a obj:CreationEvent ; | ||
obj:createsExpression ?expression . | ||
?expression obj:isEmbodiedIn ?manifestation . | ||
?manifestation obj:hasType ?type . | ||
} | ||
``` | ||
|
||
## CQ_5.6 | ||
What are the manifestations that depict other expressions? | ||
## CQ_6.6 | ||
Which license statement is assigned to the cultural object? | ||
|
||
```SPARQL | ||
PREFIX ex: <https://w3id.org/dharc/ontology/chad-ap/object/development/05/data/> | ||
PREFIX obj: <https://w3id.org/dharc/ontology/chad-ap/object/development/05/schema/> | ||
PREFIX ex: <https://w3id.org/dharc/ontology/chad-ap/object/development/06/data/> | ||
PREFIX obj: <https://w3id.org/dharc/ontology/chad-ap/object/development/06/schema/> | ||
SELECT ?manifestation ?expression | ||
SELECT ?manifestation ?license ?external_resource | ||
WHERE { | ||
?manifestation obj:depicts ?expression . | ||
?creation a obj:CreationEvent ; | ||
obj:createsExpression ?expression . | ||
?expression obj:isEmbodiedIn ?manifestation . | ||
?license obj:type obj:license-statement ; | ||
obj:refersTo ?manifestation ; | ||
obj:isDocumentedIn ?external_resource . | ||
} | ||
``` | ||
|
||
## CQ_5.7 | ||
What are the license statements referring to the manifestations? | ||
## CQ_6.7 | ||
What are the identifiers identifying the cultural object? What are their types? | ||
|
||
```SPARQL | ||
PREFIX ex: <https://w3id.org/dharc/ontology/chad-ap/object/development/05/data/> | ||
PREFIX obj: <https://w3id.org/dharc/ontology/chad-ap/object/development/05/schema/> | ||
PREFIX ex: <https://w3id.org/dharc/ontology/chad-ap/object/development/06/data/> | ||
PREFIX obj: <https://w3id.org/dharc/ontology/chad-ap/object/development/06/schema/> | ||
SELECT ?manifestation ?license_link | ||
SELECT ?identifier ?type ?content | ||
WHERE { | ||
?license obj:refersTo ?manifestation ; | ||
obj:hasType obj:license ; | ||
obj:isDocumentedIn ?license_link . | ||
?creation a obj:CreationEvent ; | ||
obj:createsExpression ?expression . | ||
?expression obj:isEmbodiedIn ?manifestation . | ||
?manifestation obj:isExemplifiedBy ?item . | ||
?item obj:hasIdentifier ?identifier . | ||
?identifier obj:hasType ?type ; | ||
obj:hasContent ?content . | ||
} | ||
``` | ||
|
||
## CQ_6.8 | ||
What is the curation activity in which the object is involved? Who carried it out? | ||
|
||
```SPARQL | ||
PREFIX ex: <https://w3id.org/dharc/ontology/chad-ap/object/development/06/data/> | ||
PREFIX obj: <https://w3id.org/dharc/ontology/chad-ap/object/development/06/schema/> | ||
SELECT ?item ?activity ?actor | ||
WHERE { | ||
?creation a obj:CreationEvent ; | ||
obj:createsExpression ?expression . | ||
?expression obj:isEmbodiedIn ?manifestation . | ||
?manifestation obj:isExemplifiedBy ?item . | ||
?activity obj:usesObject ?item ; | ||
obj:isCarriedOutBy ?actor . | ||
} | ||
``` | ||
|
||
## CQ_6.9 | ||
What is the description of the cultural object? | ||
|
||
```SPARQL | ||
PREFIX ex: <https://w3id.org/dharc/ontology/chad-ap/object/development/06/data/> | ||
PREFIX obj: <https://w3id.org/dharc/ontology/chad-ap/object/development/06/schema/> | ||
SELECT ?item ?description | ||
WHERE { | ||
?creation a obj:CreationEvent ; | ||
obj:createsExpression ?expression . | ||
?expression obj:isEmbodiedIn ?manifestation . | ||
?manifestation obj:isExemplifiedBy ?item . | ||
?item obj:hasDescription ?description . | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters