Skip to content

Commit

Permalink
Add Issue and Asset entities from the Issue Procedure Ontology (IPO) …
Browse files Browse the repository at this point in the history
…to represent issues.
  • Loading branch information
fanavarro committed Apr 8, 2024
1 parent 4e1339a commit 6472d70
Show file tree
Hide file tree
Showing 2 changed files with 251 additions and 15 deletions.
229 changes: 214 additions & 15 deletions ontology/oquo.owl
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,95 @@ MyMitralValve@201209091213 is part of my heart</skos:definition>



<!-- http://purl.org/ipo/core#assetOf -->

<owl:ObjectProperty rdf:about="http://purl.org/ipo/core#assetOf">
<rdfs:comment xml:lang="en">Indicates a IssueEntity that is related to the Asset.
This property can be used to facilitate retrieval records of problems related to the Asset.</rdfs:comment>
<rdfs:isDefinedBy rdf:resource="http://purl.org/ipo/core"/>
<rdfs:label xml:lang="en">assetOf</rdfs:label>
</owl:ObjectProperty>



<!-- http://purl.org/ipo/core#causativeAssetOf -->

<owl:ObjectProperty rdf:about="http://purl.org/ipo/core#causativeAssetOf">
<rdfs:subPropertyOf rdf:resource="http://purl.org/ipo/core#assetOf"/>
<owl:inverseOf rdf:resource="http://purl.org/ipo/core#hasCausativeAsset"/>
<rdfs:comment xml:lang="en">This property relates a Asset with a Issue caused by this Asset. For example, a virus associated with a disease caused by it.</rdfs:comment>
<rdfs:isDefinedBy rdf:resource="http://purl.org/ipo/core"/>
<rdfs:label xml:lang="en">causativeAssetOf</rdfs:label>
</owl:ObjectProperty>



<!-- http://purl.org/ipo/core#hasAsset -->

<owl:ObjectProperty rdf:about="http://purl.org/ipo/core#hasAsset">
<rdfs:comment xml:lang="en">Indicates an Asset to IssueEntity, i.e., any &quot;thing&quot; which is related to IssueEntity.</rdfs:comment>
<rdfs:isDefinedBy rdf:resource="http://purl.org/ipo/core"/>
<rdfs:label xml:lang="en">hasAsset</rdfs:label>
</owl:ObjectProperty>



<!-- http://purl.org/ipo/core#hasCausativeAsset -->

<owl:ObjectProperty rdf:about="http://purl.org/ipo/core#hasCausativeAsset">
<rdfs:subPropertyOf rdf:resource="http://purl.org/ipo/core#hasAsset"/>
<rdfs:domain rdf:resource="http://purl.org/ipo/core#Issue"/>
<rdfs:comment xml:lang="en">Indicates an Asset that is the causer of the Issue.</rdfs:comment>
<rdfs:isDefinedBy rdf:resource="http://purl.org/ipo/core"/>
<rdfs:label xml:lang="en">hasCausativeAsset</rdfs:label>
</owl:ObjectProperty>



<!-- http://purl.org/ipo/core#hasHostAsset -->

<owl:ObjectProperty rdf:about="http://purl.org/ipo/core#hasHostAsset">
<rdfs:subPropertyOf rdf:resource="http://purl.org/ipo/core#hasAsset"/>
<owl:inverseOf rdf:resource="http://purl.org/ipo/core#hostAssetOf"/>
<rdfs:domain rdf:resource="http://purl.org/ipo/core#Issue"/>
<rdfs:comment xml:lang="en">Indicates an Asset that is the host (harbourer) of the Issue.</rdfs:comment>
<rdfs:isDefinedBy rdf:resource="http://purl.org/ipo/core"/>
<rdfs:label xml:lang="en">hasHostAsset</rdfs:label>
</owl:ObjectProperty>



<!-- http://purl.org/ipo/core#hostAssetOf -->

<owl:ObjectProperty rdf:about="http://purl.org/ipo/core#hostAssetOf">
<rdfs:subPropertyOf rdf:resource="http://purl.org/ipo/core#assetOf"/>
<rdfs:comment xml:lang="en">Relates an Asset with a Issue that occurs in it.
This property can be used to relate a person with a disease whose the person is where the disease occurs.</rdfs:comment>
<rdfs:isDefinedBy rdf:resource="http://purl.org/ipo/core"/>
<rdfs:label xml:lang="en">hostAssetOf</rdfs:label>
</owl:ObjectProperty>



<!-- https://purl.archive.org/oquo#hasDetectedIssue -->

<owl:ObjectProperty rdf:about="https://purl.archive.org/oquo#hasDetectedIssue">
<rdfs:domain>
<owl:Class>
<owl:unionOf rdf:parseType="Collection">
<rdf:Description rdf:about="http://ecoinformatics.org/oboe/oboe.1.2/oboe-core.owl#Observation"/>
<rdf:Description rdf:about="http://purl.org/net/EvaluationResult#Evaluation"/>
</owl:unionOf>
</owl:Class>
</rdfs:domain>
<rdfs:range rdf:resource="http://purl.org/ipo/core#Issue"/>
<oboInOwl:hasExactSynonym>has detected problem</oboInOwl:hasExactSynonym>
<rdfs:comment>Links evaluations or observations to the issues that have been detected.</rdfs:comment>
<rdfs:label>has detected issue</rdfs:label>
</owl:ObjectProperty>



<!-- https://purl.archive.org/oquo#lexicalRegularityExhibitedBy -->

<owl:ObjectProperty rdf:about="https://purl.archive.org/oquo#lexicalRegularityExhibitedBy">
Expand Down Expand Up @@ -367,14 +456,16 @@ MyMitralValve@201209091213 is part of my heart</skos:definition>

<owl:Class rdf:about="http://ecoinformatics.org/oboe/oboe.1.2/oboe-core.owl#Characteristic">
<owl:equivalentClass rdf:resource="http://purl.org/net/QualityModel#QualityCharacteristic"/>
<rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string">A characteristic represents a property of an entity that can be measured (e.g., height, length, or color). A characteristic of an entity is observed through a measurement, which further asserts a value of the characteristic for the entity. A characteristic type (e.g., &quot;height&quot;) can be associated with many different entities, whereas an individual characteristic (a particular occurrence of the &quot;height&quot; characteristic) is associated to exactly one entity.</rdfs:comment>
<rdfs:label xml:lang="en">Characteristic</rdfs:label>
</owl:Class>



<!-- http://ecoinformatics.org/oboe/oboe.1.2/oboe-core.owl#Entity -->

<owl:Class rdf:about="http://ecoinformatics.org/oboe/oboe.1.2/oboe-core.owl#Entity">
<owl:equivalentClass rdf:resource="http://purl.org/net/EvaluationResult#EvaluationSubject"/>
<owl:equivalentClass rdf:resource="http://purl.org/ipo/core#Asset"/>
<rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string">An entity is an object (e.g., a tree, a community, an ecological process). Entities constitute the foci of observations, i.e., every observation is of exactly one entity.</rdfs:comment>
<rdfs:label xml:lang="en">Entity</rdfs:label>
</owl:Class>
Expand Down Expand Up @@ -434,9 +525,35 @@ MyMitralValve@201209091213 is part of my heart</skos:definition>



<!-- http://purl.org/ipo/core#Asset -->

<owl:Class rdf:about="http://purl.org/ipo/core#Asset">
<rdfs:comment xml:lang="en">Any &quot;thing&quot; that a IssueEntity is related.
For example, a problem (disease) diagnosed in a patient, can have a virus and the patient as Asset, since the virus is the causative agent of the problem and the patient is the host in which the problem manifests itself.
An Asset can be a person, an object, a report, a document, etc.</rdfs:comment>
<rdfs:isDefinedBy rdf:resource="http://purl.org/ipo/core"/>
<rdfs:label xml:lang="en">Asset</rdfs:label>
</owl:Class>



<!-- http://purl.org/ipo/core#Issue -->

<owl:Class rdf:about="http://purl.org/ipo/core#Issue">
<rdfs:comment xml:lang="en">A problem or issue to be resolved. For example, something that is not operating normally or a hindrance to performing some task.
A Issue can be cause and/or caused, directly or indirectly, by another Issue, the same that the Issue A can depend on the Issue B, needing that the Issue B be solved before solving Issue A.
The Issue can have a set of Actions (Procedures) that will fix it and also a Issue can be indicated by several Symptoms, where a set of Symptoms can identify a Issue.</rdfs:comment>
<rdfs:isDefinedBy rdf:resource="http://purl.org/ipo/core"/>
<rdfs:label xml:lang="en">Issue</rdfs:label>
</owl:Class>



<!-- http://purl.org/net/EvaluationResult#EvaluationSubject -->

<rdf:Description rdf:about="http://purl.org/net/EvaluationResult#EvaluationSubject"/>
<rdf:Description rdf:about="http://purl.org/net/EvaluationResult#EvaluationSubject">
<rdfs:subClassOf rdf:resource="http://ecoinformatics.org/oboe/oboe.1.2/oboe-core.owl#Entity"/>
</rdf:Description>



Expand Down Expand Up @@ -465,6 +582,19 @@ MyMitralValve@201209091213 is part of my heart</skos:definition>



<!-- http://www.w3.org/2006/time#Instant -->

<rdf:Description rdf:about="http://www.w3.org/2006/time#Instant">
<rdfs:comment xml:lang="en">A temporal entity with zero extent or duration</rdfs:comment>
<rdfs:comment xml:lang="es">Una entidad temporal con una extensión o duración cero.</rdfs:comment>
<rdfs:label xml:lang="en">Time instant</rdfs:label>
<rdfs:label xml:lang="es">instante de tiempo.</rdfs:label>
<skos:definition xml:lang="en">A temporal entity with zero extent or duration</skos:definition>
<skos:definition xml:lang="es">Una entidad temporal con una extensión o duración cero.</skos:definition>
</rdf:Description>



<!-- http://www.wurvoc.org/vocabularies/om-1.8/Measurement_scale -->

<rdf:Description rdf:about="http://www.wurvoc.org/vocabularies/om-1.8/Measurement_scale">
Expand All @@ -475,6 +605,17 @@ MyMitralValve@201209091213 is part of my heart</skos:definition>



<!-- http://www.wurvoc.org/vocabularies/om-1.8/Unit_of_measure -->

<rdf:Description rdf:about="http://www.wurvoc.org/vocabularies/om-1.8/Unit_of_measure">
<rdfs:comment xml:lang="en">A unit of measure is a definite magnitude of a quantity, defined and adopted by convention and/or by law. It is used as a standard for measurement of the same quantity, where any other value of the quantity can be expressed as a simple multiple of the unit of measure. For example, length is a quantity; the metre is a unit of length that represents a definite predetermined length. When we say 10 metre (or 10 m), we actually mean 10 times the definite predetermined length called &quot;metre&quot;.</rdfs:comment>
<rdfs:label xml:lang="en">unit of measure</rdfs:label>
<om-1:alternative_label xml:lang="en">unit</om-1:alternative_label>
<om-1:alternative_label xml:lang="en">unit of measurement</om-1:alternative_label>
</rdf:Description>



<!-- https://purl.archive.org/oquo#AdaptabilityCharacteristic -->

<owl:Class rdf:about="https://purl.archive.org/oquo#AdaptabilityCharacteristic">
Expand Down Expand Up @@ -1447,6 +1588,14 @@ MyMitralValve@201209091213 is part of my heart</skos:definition>



<!-- https://purl.archive.org/oquo#CriticalIssue -->

<owl:Class rdf:about="https://purl.archive.org/oquo#CriticalIssue">
<rdfs:subClassOf rdf:resource="http://purl.org/ipo/core#Issue"/>
</owl:Class>



<!-- https://purl.archive.org/oquo#CyclesCharacteristic -->

<owl:Class rdf:about="https://purl.archive.org/oquo#CyclesCharacteristic">
Expand Down Expand Up @@ -2830,6 +2979,22 @@ MyMitralValve@201209091213 is part of my heart</skos:definition>



<!-- https://purl.archive.org/oquo#MajorIssue -->

<owl:Class rdf:about="https://purl.archive.org/oquo#MajorIssue">
<rdfs:subClassOf rdf:resource="http://purl.org/ipo/core#Issue"/>
</owl:Class>



<!-- https://purl.archive.org/oquo#MinorIssue -->

<owl:Class rdf:about="https://purl.archive.org/oquo#MinorIssue">
<rdfs:subClassOf rdf:resource="http://purl.org/ipo/core#Issue"/>
</owl:Class>



<!-- https://purl.archive.org/oquo#ModificaionStabilityCharacteristic -->

<owl:Class rdf:about="https://purl.archive.org/oquo#ModificaionStabilityCharacteristic">
Expand Down Expand Up @@ -5025,6 +5190,14 @@ MyMitralValve@201209091213 is part of my heart</skos:definition>



<!-- https://purl.archive.org/oquo#TrivialIssue -->

<owl:Class rdf:about="https://purl.archive.org/oquo#TrivialIssue">
<rdfs:subClassOf rdf:resource="http://purl.org/ipo/core#Issue"/>
</owl:Class>



<!-- https://purl.archive.org/oquo#UsabilityInUseCharacteristic -->

<owl:Class rdf:about="https://purl.archive.org/oquo#UsabilityInUseCharacteristic">
Expand Down Expand Up @@ -5218,14 +5391,6 @@ MyMitralValve@201209091213 is part of my heart</skos:definition>
///////////////////////////////////////////////////////////////////////////////////////
-->

<rdf:Description rdf:about="http://www.w3.org/2006/time#Instant">
<rdfs:comment xml:lang="es">Una entidad temporal con una extensión o duración cero.</rdfs:comment>
<rdfs:label xml:lang="es">instante de tiempo.</rdfs:label>
<skos:definition xml:lang="es">Una entidad temporal con una extensión o duración cero.</skos:definition>
<rdfs:comment xml:lang="en">A temporal entity with zero extent or duration</rdfs:comment>
<rdfs:label xml:lang="en">Time instant</rdfs:label>
<skos:definition xml:lang="en">A temporal entity with zero extent or duration</skos:definition>
</rdf:Description>
<rdf:Description rdf:about="http://www.wurvoc.org/vocabularies/om-1.8/Cardinal_scale">
<rdfs:label xml:lang="en">cardinal scale</rdfs:label>
</rdf:Description>
Expand All @@ -5241,11 +5406,45 @@ MyMitralValve@201209091213 is part of my heart</skos:definition>
<rdf:Description rdf:about="http://www.wurvoc.org/vocabularies/om-1.8/Ratio_scale">
<rdfs:label xml:lang="en">ratio scale</rdfs:label>
</rdf:Description>
<rdf:Description rdf:about="http://www.wurvoc.org/vocabularies/om-1.8/Unit_of_measure">
<rdfs:label xml:lang="en">unit of measure</rdfs:label>
<om-1:alternative_label xml:lang="en">unit</om-1:alternative_label>
<rdfs:comment xml:lang="en">A unit of measure is a definite magnitude of a quantity, defined and adopted by convention and/or by law. It is used as a standard for measurement of the same quantity, where any other value of the quantity can be expressed as a simple multiple of the unit of measure. For example, length is a quantity; the metre is a unit of length that represents a definite predetermined length. When we say 10 metre (or 10 m), we actually mean 10 times the definite predetermined length called &quot;metre&quot;.</rdfs:comment>
<om-1:alternative_label xml:lang="en">unit of measurement</om-1:alternative_label>



<!--
///////////////////////////////////////////////////////////////////////////////////////
//
// General axioms
//
///////////////////////////////////////////////////////////////////////////////////////
-->

<rdf:Description>
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#AllDisjointClasses"/>
<owl:members rdf:parseType="Collection">
<rdf:Description rdf:about="http://ecoinformatics.org/oboe/oboe.1.2/oboe-core.owl#Entity"/>
<rdf:Description rdf:about="http://ecoinformatics.org/oboe/oboe.1.2/oboe-core.owl#Measurement"/>
<rdf:Description rdf:about="http://ecoinformatics.org/oboe/oboe.1.2/oboe-core.owl#Observation"/>
<rdf:Description rdf:about="http://purl.org/ipo/core#Issue"/>
<rdf:Description rdf:about="http://purl.org/net/EvaluationResult#Evaluation"/>
<rdf:Description rdf:about="http://purl.org/net/EvaluationResult#EvaluationData"/>
<rdf:Description rdf:about="http://purl.org/net/EvaluationResult#QualityValue"/>
<rdf:Description rdf:about="http://purl.org/net/EvaluationResult#SubjectCategory"/>
<rdf:Description rdf:about="http://purl.org/net/QualityModel#OrdinalScaleItem"/>
<rdf:Description rdf:about="http://purl.org/net/QualityModel#QualityCharacteristic"/>
<rdf:Description rdf:about="http://purl.org/net/QualityModel#QualityMeasure"/>
<rdf:Description rdf:about="http://purl.org/net/QualityModel#RankingFunction"/>
<rdf:Description rdf:about="http://www.w3.org/2006/time#Instant"/>
<rdf:Description rdf:about="http://www.wurvoc.org/vocabularies/om-1.8/Measurement_scale"/>
<rdf:Description rdf:about="http://www.wurvoc.org/vocabularies/om-1.8/Unit_of_measure"/>
</owl:members>
</rdf:Description>
<rdf:Description>
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#AllDisjointClasses"/>
<owl:members rdf:parseType="Collection">
<rdf:Description rdf:about="https://purl.archive.org/oquo#CriticalIssue"/>
<rdf:Description rdf:about="https://purl.archive.org/oquo#MajorIssue"/>
<rdf:Description rdf:about="https://purl.archive.org/oquo#MinorIssue"/>
<rdf:Description rdf:about="https://purl.archive.org/oquo#TrivialIssue"/>
</owl:members>
</rdf:Description>
</rdf:RDF>

Expand Down
37 changes: 37 additions & 0 deletions shacl_eval.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
@prefix oboe: <http://ecoinformatics.org/oboe/oboe.1.2/oboe-core.owl#> .
@prefix btl2: <http://purl.org/biotop/btl2.owl#> .
@prefix om: <http://www.wurvoc.org/vocabularies/om-1.8/> .
@prefix ipo: <http://purl.org/ipo/core#> .

oquo:EvaluationShape
a sh:NodeShape ;
Expand Down Expand Up @@ -234,3 +235,39 @@ oquo:MeasurementValueShape
sh:closed true ;
sh:ignoredProperties ( rdf:type owl:topDataProperty owl:topObjectProperty ) ;
.


oquo:AssetShape
a sh:NodeShape ;
sh:targetClass ipo:Asset ;
sh:property [
sh:path ipo:hostAssetOf ;
sh:class ipo:Issue ;
sh:severity sh:Violation ;
] ;

sh:closed true ;
sh:ignoredProperties ( rdf:type owl:topDataProperty owl:topObjectProperty ) ;
.


oquo:IssueShape
a sh:NodeShape ;
sh:targetClass ipo:Issue ;
sh:property [
sh:path ipo:hasHostAsset ;
sh:class ipo:Asset ;
sh:severity sh:Violation ;
] ;

sh:property [
sh:path rdfs:comment ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:datatype xsd:string ;
sh:severity sh:Violation ;
] ;

sh:closed true ;
sh:ignoredProperties ( rdf:type owl:topDataProperty owl:topObjectProperty ) ;
.

0 comments on commit 6472d70

Please sign in to comment.