Skip to content

Instantly share code, notes, and snippets.

Last active June 18, 2018 17:46
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save stain/4635250 to your computer and use it in GitHub Desktop.
How to define Internet Media Type in RDF - is there a namespace? Yes - but not an official one. See and
@prefix rdf: <> .
@prefix rdfs: <> .
@prefix dcterms: <> .
@prefix dcam: <> .
<> dcterms:format <> .
<> a dcterms:FileFormat ;
dcam:memberOf dcterms:IMT ;
rdf:value "text/html" ;
rdfs:isDefinedBy <> ;
rdfs:label "HTML document" .
Copy link

stain commented Jan 25, 2013

This is a hybrid - it provides the dcterms details of the media type directly - but uses the namespaces of rather than anonymous nodes.

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

Copy link

zednis commented Apr 13, 2016 appears to be down :-(

Copy link

This is now up: with PIDs like this: Very happy for suggestions as to how to make it great at

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment