A simple Makefile-based tool to download common open RDF ontologies from their canonical sources into a local out/ directory.
makecurl
List available targets:
make # same as `make help`
make helpDownload every ontology:
make allDownload a single ontology (e.g. Brick):
make brickRemove all downloaded files:
make cleanFiles are written to out/ and are gitignored.
| Target | Output file | Description |
|---|---|---|
brick |
out/brick.ttl |
Brick Schema 1.4.4 — building metadata ontology |
csvw |
out/csvw.ttl |
CSV on the Web (CSVW) vocabulary |
dc_elements |
out/dc_elements.ttl |
Dublin Core Metadata Element Set (legacy 15 terms) |
dc_terms |
out/dc_terms.ttl |
DCMI Metadata Terms (full Dublin Core vocabulary) |
dcat |
out/dcat.ttl |
Data Catalog Vocabulary (DCAT) 3 |
foaf |
out/foaf.rdf |
Friend of a Friend (FOAF) vocabulary |
odrl |
out/odrl.rdf |
Open Digital Rights Language (ODRL) 2.2 |
org |
out/org.ttl |
Organization Ontology (W3C ORG) |
owl |
out/owl.ttl |
OWL 2 Web Ontology Language schema |
prof |
out/prof.ttl |
Profiles Vocabulary (PROF) |
prov |
out/prov.ttl |
PROV-O: Provenance Ontology |
qb |
out/qb.ttl |
RDF Data Cube Vocabulary |
rdf |
out/rdf.ttl |
RDF 1.2 core vocabulary |
rdfs |
out/rdfs.ttl |
RDF Schema 1.1 vocabulary |
sdo |
out/sdo.ttl |
Schema.org vocabulary (latest) |
shacl |
out/shacl.ttl |
Shapes Constraint Language (SHACL) |
skos |
out/skos.rdf |
Simple Knowledge Organization System (SKOS) |
ssn |
out/ssn.ttl |
Semantic Sensor Network (SSN) ontology |
vann |
out/vann.rdf |
VANN: vocabulary for annotating vocabulary descriptions |
void |
out/void.ttl |
Vocabulary of Interlinked Datasets (VoID) — LOV mirror |
xsd |
out/xsd.xsd |
XML Schema datatypes (XSD, not RDF) |
Each ontology is saved in whatever serialization its canonical publisher provides:
- Most targets produce Turtle (
.ttl). foaf,odrl,skos, andvannare saved as RDF/XML (.rdf) because their canonical publishers do not ship a Turtle version.voidis fetched from the LOV mirror because the canonical host (vocab.deri.ie) is offline.xsdis the XML Schema file (.xsd), not an RDF serialization — XSD datatypes are not published as an RDF ontology.
- Add a phony alias under
##@ RDF Ontologiesin theMakefile, with a##description:myvocab: out/myvocab.ttl ## My vocabulary description
- Add the file rule with a
| outorder-only prerequisite:out/myvocab.ttl: | out curl -fsSL -o $@ https://example.org/myvocab.ttl
- Add the alias to
.PHONYand to thealltarget.