TizianaPasciuto / CTP_Ontology

Creative Commons Attribution 4.0 International
0 stars 0 forks source link

ctp:hasPart and owl:propertyChainAxiom #19

Closed TizianaPasciuto closed 3 months ago

TizianaPasciuto commented 4 months ago

When a Cultural Resource is part of a Thematic Path, they are linked by the Object Property ctp:hasPart. When Cultural Resources are sorted, there is a need to assign an index to each Resource. For this reason, the Object Property ctp:hasPart is equivalent to the combination of Object Properties ctp:hasSlot and ctp:hasItem and in the CTP Ontology Core this was rendered with owl:propertyChainAxiom (ctp:hasSlot ctp:hasItem).

When I run queries that can involve ordered cultural objects, as result I only get cultural objects that are related to the thematic path with ctp:hasPart, while I would need to get others too.

Possible solutions:

TizianaPasciuto commented 3 months ago

Possible solution - 2nd Where required, enter


WHERE{  
 {
    ?ThematicPath ctp:hasPart ?CulturalResource.
  }
  UNION
  {
    ?ThematicPath ctp:hasSlot ?OrderedListSlot.
    ?OrderedListSlot ctp:hasItem ?CulturalResource.
  }    
  }  ```
TizianaPasciuto commented 3 months ago

This issue has been resolved: the second solution proposed has been implemented, and it works. We reserve the right to evaluate the other two solutions later.