Last active

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

How to define Internet Media Type in RDF - is there a namespace? Yes - but not an official one. See http://answers.semanticweb.com/questions/639/is-there-a-namespace-to-describe-mimetypes-and-encodings and http://mediatypes.appspot.com/

View mediatypes.ttl
1 2 3 4 5 6 7 8 9 10 11 12
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix dcam: <http://purl.org/dc/dcam/> .
 
<http://example.com/page.html> dcterms:format <http://purl.org/NET/mediatypes/text/html> .
 
<http://purl.org/NET/mediatypes/text/html> a dcterms:FileFormat ;
dcam:memberOf dcterms:IMT ;
rdf:value "text/html" ;
rdfs:isDefinedBy <http://mediatypes.appspot.com/dump.rdf> ;
rdfs:label "HTML document" .
Owner

This is a hybrid - it provides the dcterms details of the media type directly - but uses the namespaces of http://purl.org/NET/mediatypes/ rather than anonymous nodes.

Sadly the mediatypes URLs don't resolve properly to RDF - and the RDF at http://mediatypes.appspot.com/dump.rdf is also quite sparse - it has no such statements as above, for instance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.