Skip to content

Commit

Permalink
Rename MimeType to MediaType, create ontology to declare instances.
Browse files Browse the repository at this point in the history
  • Loading branch information
sa-bpelakh committed May 17, 2021
1 parent cb58616 commit 9630a83
Show file tree
Hide file tree
Showing 4 changed files with 121 additions and 9 deletions.
2 changes: 2 additions & 0 deletions bundle.yaml
Expand Up @@ -63,6 +63,7 @@ actions:
source: "{input}"
includes:
- gistCore.ttl
- gistMediaTypes.ttl
- gistValidationAnnotations.ttl
shapes:
source: "{input}/ontologyShapes.ttl"
Expand All @@ -80,6 +81,7 @@ actions:
to: "\\g<1>{version}.ttl"
includes:
- gistCore.ttl
- gistMediaTypes.ttl
- gistDeprecated.ttl
- action: "definedBy"
message: "Adding rdfs:definedBy."
Expand Down
17 changes: 17 additions & 0 deletions docs/ReleaseNotes.md
@@ -1,6 +1,23 @@
gist Release Notes
=====

Release 10.0.0
-----

### Major Updates

- Renamed `MimeType` to `MediaType` to be consistent with [IANA guidelines](https://www.iana.org/assignments/media-types/media-types.xhtml)
and [RFC6838](https://tools.ietf.org/html/rfc6838). Issue [#434](<https://github.com/semanticarts/gist/issues/434>).

### Minor Updates

- Created a `gistMediaTypes` ontology to declare `MediaType` instances relevant to semantic applications.
Issue [#463](<https://github.com/semanticarts/gist/issues/463>).

### Patch Updates

Import URL: <https://ontologies.semanticarts.com/o/gistCore10.0.0>.

Release 9.7.0
-----

Expand Down
18 changes: 9 additions & 9 deletions gistCore.ttl
Expand Up @@ -940,7 +940,7 @@ gist:FormattedContent
[
a owl:Restriction ;
owl:onProperty gist:expressedIn ;
owl:someValuesFrom gist:MimeType ;
owl:someValuesFrom gist:MediaType ;
]
) ;
] ;
Expand Down Expand Up @@ -1503,6 +1503,13 @@ gist:MassUnit
skos:prefLabel "Mass Unit"^^xsd:string ;
.

gist:MediaType
a owl:Class ;
rdfs:subClassOf gist:Category ;
skos:definition "A digitized type that computer applications can recognize."^^xsd:string ;
skos:prefLabel "MIME Type"^^xsd:string ;
.

gist:Medium
a owl:Class ;
rdfs:subClassOf gist:Category ;
Expand Down Expand Up @@ -1552,13 +1559,6 @@ gist:MessageDefinition
skos:prefLabel "Message Definition"^^xsd:string ;
.

gist:MimeType
a owl:Class ;
rdfs:subClassOf gist:Category ;
skos:definition "A digitized type that computer applications can recognize."^^xsd:string ;
skos:prefLabel "MIME Type"^^xsd:string ;
.

gist:MolarQuantity
a owl:Class ;
owl:equivalentClass [
Expand Down Expand Up @@ -2121,7 +2121,7 @@ gist:RenderedContent
[
a owl:Restriction ;
owl:onProperty gist:expressedIn ;
owl:someValuesFrom gist:MimeType ;
owl:someValuesFrom gist:MediaType ;
]
[
a owl:Restriction ;
Expand Down
93 changes: 93 additions & 0 deletions gistMediaTypes.ttl
@@ -0,0 +1,93 @@
# imports: https://ontologies.semanticarts.com/o/gistCore

@prefix gist: <https://ontologies.semanticarts.com/gist/> .
@prefix mimeapp: <https://www.iana.org/assignments/media-types/application/> .
@prefix mimetxt: <https://www.iana.org/assignments/media-types/text/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<https://ontologies.semanticarts.com/o/gistMediaTypes>
a owl:Ontology ;
owl:imports <https://ontologies.semanticarts.com/o/gistCore> ;
owl:versionIRI <https://ontologies.semanticarts.com/o/gistMediaTypesX.x.x> ;
skos:definition "Definitions of IANA Media Types."^^xsd:string ;
skos:prefLabel "gistMediaTypes"^^xsd:string ;
gist:license "https://creativecommons.org/licenses/by-sa/3.0/"^^xsd:string ;
.

mimeapp:json
a gist:MimeType ;
skos:prefLabel "JSON"^^xsd:string ;
gist:uniqueText "application/json"^^xsd:string ;
.

<https://www.iana.org/assignments/media-types/application/ld+json>
a gist:MimeType ;
skos:prefLabel "JSON-LD"^^xsd:string ;
gist:uniqueText "application/ld+json"^^xsd:string ;
.

mimeapp:n-quads
a gist:MimeType ;
skos:prefLabel "N-Quads"^^xsd:string ;
gist:uniqueText "application/n-quads"^^xsd:string ;
.

mimeapp:n-triples
a gist:MimeType ;
skos:prefLabel "N-Triples"^^xsd:string ;
gist:uniqueText "application/n-triples"^^xsd:string ;
.

<https://www.iana.org/assignments/media-types/application/rdf+xml>
a gist:MimeType ;
skos:prefLabel "RDF/XML"^^xsd:string ;
gist:uniqueText "application/rdf+xml"^^xsd:string ;
.

<https://www.iana.org/assignments/media-types/application/sparql-results+json>
a gist:MimeType ;
skos:prefLabel "SPARQL 1.1 Query Results JSON"^^xsd:string ;
gist:uniqueText "application/sparql-results+json"^^xsd:string ;
.

<https://www.iana.org/assignments/media-types/application/sparql-results+xml>
a gist:MimeType ;
skos:prefLabel "SPARQL 1.1 Query Results XML"^^xsd:string ;
gist:uniqueText "application/sparql-results+xml"^^xsd:string ;
.

mimeapp:trig
a gist:MimeType ;
skos:prefLabel "TriG"^^xsd:string ;
gist:uniqueText "application/trig"^^xsd:string ;
.

mimetxt:csv
a gist:MimeType ;
skos:prefLabel "CSV"^^xsd:string ;
gist:uniqueText "text/csv"^^xsd:string ;
.

mimetxt:html
a gist:MimeType ;
skos:prefLabel "HTML"^^xsd:string ;
gist:uniqueText "text/html"^^xsd:string ;
.

mimetxt:plain
a gist:MimeType ;
skos:prefLabel "Plain Text"^^xsd:string ;
gist:uniqueText "text/plain"^^xsd:string ;
.

mimetxt:turtle
a gist:MimeType ;
skos:prefLabel "Turtle"^^xsd:string ;
gist:uniqueText "text/turtle"^^xsd:string ;
.

0 comments on commit 9630a83

Please sign in to comment.