Skip to content

Commit

Permalink
feat: add sparql object 06
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrzt committed May 19, 2024
1 parent dd3218c commit f4dbac5
Show file tree
Hide file tree
Showing 9 changed files with 332 additions and 216 deletions.
4 changes: 2 additions & 2 deletions object/development/06/ABox.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ ex:32-work-title-02 a obj:Title ;

ex:32-expression a obj:Expression ;
obj:isAbout ex:ermafrodita ;
obj:embodies ex:32-manifestation .
obj:isEmbodiedIn ex:32-manifestation .

ex:32-manifestation a obj:Manifestation ;
obj:hasType obj:manuscript ;
Expand All @@ -52,7 +52,7 @@ ex:tavole-di-animali-work a obj:Work ;
obj:isRealizedIn ex:tavole-di-animali-expression .

ex:tavole-di-animali-expression a obj:Expression ;
obj:embodies ex:tavole-di-animali-manifestation .
obj:isEmbodiedIn ex:tavole-di-animali-manifestation .

ex:tavole-di-animali-manifestation a obj:Manifestation ;
obj:hasType obj:print-volume ;
Expand Down
4 changes: 2 additions & 2 deletions object/development/06/TBox.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
rdfs:label "is realized in"@en .


:embodies rdf:type owl:ObjectProperty ;
:isEmbodiedIn rdf:type owl:ObjectProperty ;
rdfs:subPropertyOf owl:topObjectProperty ;
rdfs:label "embodies"@en .
rdfs:label "is embodied in"@en .


:isEsemplifiedBy rdf:type owl:ObjectProperty ;
Expand Down
344 changes: 211 additions & 133 deletions object/development/06/formal-competency-questions-testing.ipynb

Large diffs are not rendered by default.

164 changes: 101 additions & 63 deletions object/development/06/formal-competency-questions.md
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 .
}
```
2 changes: 1 addition & 1 deletion object/development/06/glossary.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
| `creates work` | This property links a creation event with a work. |
| `creates expression` | This property links a creation event with a exppression. |
| `is realized in` | This property links a work with an expression. |
| `embodies` | This property links an expression with a manifestation. |
| `is embodied in` | This property links an expression with a manifestation. |
| `is exemplified by` | This property links a manifestation with an item. |
| `has member` | This property links a work with another work. |
| `has title` | This property links an entity with a title. |
Expand Down
22 changes: 11 additions & 11 deletions object/development/06/informal-competency-questions.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Informal Competency Questions
## Question 1
### Identifier
CQ_5.1
CQ_6.1

### Question
What are the titles of the work? What are their types?
Expand All @@ -21,7 +21,7 @@ Example 1

## Question 2
### Identifier
CQ_5.2
CQ_6.2

### Question
Which work was created and in which period?
Expand All @@ -39,13 +39,13 @@ Example 1

## Question 3
### Identifier
CQ_5.3
CQ_6.3

### Question
Which works are part of other works? What are the types of the larger works?

### Exprected outcome
List of: `work`, `larger_work`
List of: `work`, `larger_work`, `type`

### Result
* `32-work`, `tavole-di-animali-work`, `print-volume`
Expand All @@ -57,7 +57,7 @@ Example 1

## Question 4
### Identifier
CQ_5.4
CQ_6.4

### Question
What is the cultural object about?
Expand All @@ -75,7 +75,7 @@ Example 1

## Question 5
### Identifier
CQ_5.5
CQ_6.5

### Question
What is the type of the cultural object?
Expand All @@ -93,7 +93,7 @@ Example 1

## Question 6
### Identifier
CQ_5.6
CQ_6.6

### Question
Which license statement is assigned to the cultural object?
Expand All @@ -111,7 +111,7 @@ Example 1

## Question 7
### Identifier
CQ_5.7
CQ_6.7

### Question
What are the identifiers identifying the cultural object? What are their types?
Expand All @@ -131,7 +131,7 @@ Example 1

## Question 8
### Identifier
CQ_5.8
CQ_6.8

### Question
What is the curation activity in which the object is involved? Who carried it out?
Expand All @@ -147,9 +147,9 @@ Example 1

***

## Question 8
## Question 9
### Identifier
CQ_5.9
CQ_6.9

### Question
What is the description of the cultural object?
Expand Down
2 changes: 1 addition & 1 deletion object/development/06/modelet.graphml
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@
<y:Path sx="0.0" sy="0.0" tx="0.0" ty="0.0"/>
<y:LineStyle color="#000080" type="line" width="1.0"/>
<y:Arrows source="circle" target="delta"/>
<y:EdgeLabel alignment="center" backgroundColor="#FFFFFF" distance="2.0" fontFamily="Dialog" fontSize="16" fontStyle="plain" hasLineColor="false" height="23.6015625" horizontalTextPosition="center" iconTextGap="4" modelName="centered" modelPosition="center" preferredPlacement="anywhere" ratio="0.5" textColor="#000080" verticalTextPosition="bottom" visible="true" width="73.375" x="-36.687499884921834" xml:space="preserve" y="51.33881905455419">embodies<y:PreferredPlacementDescriptor angle="0.0" angleOffsetOnRightSide="0" angleReference="absolute" angleRotationOnRightSide="co" distance="-1.0" frozen="true" placement="anywhere" side="anywhere" sideReference="relative_to_edge_flow"/></y:EdgeLabel>
<y:EdgeLabel alignment="center" backgroundColor="#FFFFFF" distance="2.0" fontFamily="Dialog" fontSize="16" fontStyle="plain" hasLineColor="false" height="23.6015625" horizontalTextPosition="center" iconTextGap="4" modelName="centered" modelPosition="center" preferredPlacement="anywhere" ratio="0.5" textColor="#000080" verticalTextPosition="bottom" visible="true" width="73.375" x="-36.687499884921834" xml:space="preserve" y="51.33881905455419">is embodied in<y:PreferredPlacementDescriptor angle="0.0" angleOffsetOnRightSide="0" angleReference="absolute" angleRotationOnRightSide="co" distance="-1.0" frozen="true" placement="anywhere" side="anywhere" sideReference="relative_to_edge_flow"/></y:EdgeLabel>
<y:BendStyle smoothed="false"/>
</y:PolyLineEdge>
</data>
Expand Down
4 changes: 2 additions & 2 deletions object/development/06/motivating-scenario.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ A `cultural resource` can be considered in terms of its essence (`work`), its co

The work has a number of `titles`, each with a `type` (e.g. original title, exhibition title, etc.) and a content. The work itself can have a type as well. Moreover, it can be composed of other works.

The expression is created by a `creation event` along with the work. An expression embodies one or more manifestations and can be about some `concepts`.
The expression is created by a `creation event` along with the work. An expression is embodied in one or more manifestations and can be about some `concepts`.
The expression creation event is carried out in a `time span` that can be expressed through either a fuzzy temporal label or a start and an end date.

The manifestation has a type and is referred to by a `licensing statement` documented in an external `document`. Finally, it is exemplified by a item.
Expand All @@ -20,7 +20,7 @@ The creation event `32-expression-creation` created the work `32-work` and the e

`32-work` has two titles: `32-work-title-01` with type `original-title` ("Essere umano ermafrodita"), and `32-work-title-02` with type `exhibition-title` ("Essere umano ermafrodita" and "Human hermaphrodite"). It is member of another work `tavole-di-animali-work`, whose manifestation has `print-volume` as its type. It is realised in `32-expression`.

`32-expression` is about the concept `ermafrodita`. It embodies the manifestation `L1-manifestation`.
`32-expression` is about the concept `ermafrodita`. It is embodied in the manifestation `L1-manifestation`.

`32-manifestation` has `manuscript` as its type. It is referred to by a license statement `32-manifestation-license` documented in the external document "http://rightsstatements.org/vocab/InC/1.0/". It is exemplified by `32-item`.

Expand Down
2 changes: 1 addition & 1 deletion object/diagrams/06/modelet.graphml
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@
<y:Path sx="0.0" sy="0.0" tx="0.0" ty="0.0"/>
<y:LineStyle color="#000080" type="line" width="1.0"/>
<y:Arrows source="circle" target="delta"/>
<y:EdgeLabel alignment="center" backgroundColor="#FFFFFF" distance="2.0" fontFamily="Dialog" fontSize="16" fontStyle="plain" hasLineColor="false" height="23.6015625" horizontalTextPosition="center" iconTextGap="4" modelName="centered" modelPosition="center" preferredPlacement="anywhere" ratio="0.5" textColor="#000080" verticalTextPosition="bottom" visible="true" width="147.1796875" x="-73.5898581231097" xml:space="preserve" y="51.33881905455394">lrmoo:R4_embodies<y:PreferredPlacementDescriptor angle="0.0" angleOffsetOnRightSide="0" angleReference="absolute" angleRotationOnRightSide="co" distance="-1.0" frozen="true" placement="anywhere" side="anywhere" sideReference="relative_to_edge_flow"/></y:EdgeLabel>
<y:EdgeLabel alignment="center" backgroundColor="#FFFFFF" distance="2.0" fontFamily="Dialog" fontSize="16" fontStyle="plain" hasLineColor="false" height="23.6015625" horizontalTextPosition="center" iconTextGap="4" modelName="centered" modelPosition="center" preferredPlacement="anywhere" ratio="0.5" textColor="#000080" verticalTextPosition="bottom" visible="true" width="147.1796875" x="-73.5898581231097" xml:space="preserve" y="51.33881905455394">lrmoo:R4i_is_embodied_in<y:PreferredPlacementDescriptor angle="0.0" angleOffsetOnRightSide="0" angleReference="absolute" angleRotationOnRightSide="co" distance="-1.0" frozen="true" placement="anywhere" side="anywhere" sideReference="relative_to_edge_flow"/></y:EdgeLabel>
<y:BendStyle smoothed="false"/>
</y:PolyLineEdge>
</data>
Expand Down

0 comments on commit f4dbac5

Please sign in to comment.