Skip to content

Commit

Permalink
Set observable:mimeType to be an ObjectProperty
Browse files Browse the repository at this point in the history
For compatibility with other graph data models that use IANA Media
Types, the required range is set to `dcterms:FileFormat`.

References:
* #363

Signed-off-by: Alex Nelson <[email protected]>
  • Loading branch information
ajnelson-nist committed May 4, 2022
1 parent 9cb7dc8 commit 5c15b29
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions ontology/observable/observable.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

@prefix action: <https://ontology.unifiedcyberontology.org/uco/action/> .
@prefix core: <https://ontology.unifiedcyberontology.org/uco/core/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix identity: <https://ontology.unifiedcyberontology.org/uco/identity/> .
@prefix location: <https://ontology.unifiedcyberontology.org/uco/location/> .
@prefix observable: <https://ontology.unifiedcyberontology.org/uco/observable/> .
Expand Down Expand Up @@ -1728,6 +1729,11 @@ observable:ContentDataFacet
rdfs:label "ContentDataFacet"@en ;
rdfs:comment "A content data facet is a grouping of characteristics unique to a block of digital data."@en ;
sh:property
[
sh:class dcterms:FileFormat ;
sh:nodeKind sh:IRI ;
sh:path observable:mimeType ;
] ,
[
sh:class observable:ObservableObject ;
sh:maxCount "1"^^xsd:integer ;
Expand Down Expand Up @@ -1775,11 +1781,6 @@ observable:ContentDataFacet
sh:nodeKind sh:Literal ;
sh:path observable:mimeClass ;
] ,
[
sh:datatype xsd:string ;
sh:nodeKind sh:Literal ;
sh:path observable:mimeType ;
] ,
[
sh:datatype vocabulary:EndiannessTypeVocab ;
sh:message "Value is outside the default vocabulary EndiannessTypeVocab." ;
Expand Down Expand Up @@ -10944,10 +10945,10 @@ observable:mimeClass
.

observable:mimeType
a owl:DatatypeProperty ;
a owl:ObjectProperty ;
rdfs:label "mimeType"@en ;
rdfs:comment "MIME type of the data. For example 'text/html' or 'audio/mp3'."@en ;
rdfs:range xsd:string ;
rdfs:comment "MIME type of the data. For interoperability with non-UCO resources, dcterms:FileFormat is this property's required range."@en ;
rdfs:range dcterms:FileFormat ;
.

observable:minorImageVersion
Expand Down

0 comments on commit 5c15b29

Please sign in to comment.