2017-03-12 13:27:52 +00:00
|
|
|
defmodule RDF.NS do
|
2017-06-10 19:52:16 +00:00
|
|
|
@moduledoc """
|
|
|
|
`RDF.Namespace`s for fundamental RDF vocabularies.
|
|
|
|
|
|
|
|
Namely:
|
|
|
|
|
|
|
|
- `RDF.NS.RDF`
|
|
|
|
- `RDF.NS.RDFS`
|
|
|
|
- `RDF.NS.OWL`
|
|
|
|
- `RDF.NS.SKOS`
|
|
|
|
- `RDF.NS.XSD`
|
|
|
|
"""
|
|
|
|
|
2017-03-12 13:27:52 +00:00
|
|
|
use RDF.Vocabulary.Namespace
|
|
|
|
|
2020-05-05 21:58:44 +00:00
|
|
|
# This is needed to ensure that the Turtle compiler is compiled and ready to be used to parse vocabularies.
|
|
|
|
# Without this we randomly get "unable to detect serialization format" errors depending on the parallel compilation order.
|
|
|
|
require RDF.Turtle
|
2017-03-12 13:27:52 +00:00
|
|
|
|
|
|
|
@vocabdoc """
|
|
|
|
The RDF vocabulary.
|
|
|
|
|
|
|
|
See <https://www.w3.org/TR/rdf11-concepts/>
|
|
|
|
"""
|
|
|
|
defvocab RDF,
|
2017-08-20 20:35:14 +00:00
|
|
|
base_iri: "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
|
2017-08-10 21:45:28 +00:00
|
|
|
file: "rdf.ttl",
|
2017-05-29 21:12:50 +00:00
|
|
|
alias: [
|
2020-06-29 08:37:42 +00:00
|
|
|
Nil: "nil",
|
2017-05-29 21:12:50 +00:00
|
|
|
LangString: "langString"
|
|
|
|
]
|
2017-03-12 13:27:52 +00:00
|
|
|
|
|
|
|
@vocabdoc """
|
|
|
|
The RDFS vocabulary.
|
|
|
|
|
|
|
|
See <https://www.w3.org/TR/rdf-schema/>
|
|
|
|
"""
|
|
|
|
defvocab RDFS,
|
2017-08-20 20:35:14 +00:00
|
|
|
base_iri: "http://www.w3.org/2000/01/rdf-schema#",
|
2017-08-10 21:45:28 +00:00
|
|
|
file: "rdfs.ttl"
|
2017-03-12 13:27:52 +00:00
|
|
|
|
|
|
|
@vocabdoc """
|
|
|
|
The OWL vocabulary.
|
|
|
|
|
|
|
|
See <https://www.w3.org/TR/owl-overview/>
|
|
|
|
"""
|
|
|
|
defvocab OWL,
|
2017-08-20 20:35:14 +00:00
|
|
|
base_iri: "http://www.w3.org/2002/07/owl#",
|
2017-08-10 21:45:28 +00:00
|
|
|
file: "owl.ttl"
|
2017-03-12 13:27:52 +00:00
|
|
|
|
|
|
|
@vocabdoc """
|
|
|
|
The SKOS vocabulary.
|
|
|
|
|
|
|
|
See <http://www.w3.org/TR/skos-reference/>
|
|
|
|
"""
|
|
|
|
defvocab SKOS,
|
2017-08-20 20:35:14 +00:00
|
|
|
base_iri: "http://www.w3.org/2004/02/skos/core#",
|
2017-08-10 21:45:28 +00:00
|
|
|
file: "skos.ttl"
|
2017-03-12 13:27:52 +00:00
|
|
|
|
2020-05-05 21:58:44 +00:00
|
|
|
@vocabdoc """
|
|
|
|
The XML Schema datatypes vocabulary.
|
|
|
|
|
|
|
|
See <https://www.w3.org/TR/xmlschema11-2/>
|
|
|
|
"""
|
|
|
|
defvocab XSD,
|
|
|
|
base_iri: "http://www.w3.org/2001/XMLSchema#",
|
|
|
|
terms: ~w[
|
|
|
|
string
|
|
|
|
normalizedString
|
|
|
|
token
|
|
|
|
language
|
|
|
|
Name
|
|
|
|
NCName
|
|
|
|
ID
|
|
|
|
IDREF
|
|
|
|
IDREFS
|
|
|
|
ENTITY
|
|
|
|
ENTITIES
|
|
|
|
NMTOKEN
|
|
|
|
NMTOKENS
|
|
|
|
boolean
|
|
|
|
float
|
|
|
|
double
|
|
|
|
decimal
|
|
|
|
integer
|
|
|
|
long
|
|
|
|
int
|
|
|
|
short
|
|
|
|
byte
|
|
|
|
nonPositiveInteger
|
|
|
|
negativeInteger
|
|
|
|
nonNegativeInteger
|
|
|
|
positiveInteger
|
|
|
|
unsignedLong
|
|
|
|
unsignedInt
|
|
|
|
unsignedShort
|
|
|
|
unsignedByte
|
|
|
|
duration
|
|
|
|
dayTimeDuration
|
|
|
|
yearMonthDuration
|
|
|
|
dateTime
|
|
|
|
time
|
|
|
|
date
|
|
|
|
gYearMonth
|
|
|
|
gYear
|
|
|
|
gMonthDay
|
|
|
|
gDay
|
|
|
|
gMonth
|
|
|
|
base64Binary
|
|
|
|
hexBinary
|
|
|
|
anyURI
|
|
|
|
QName
|
|
|
|
NOTATION
|
|
|
|
]
|
2017-03-12 13:27:52 +00:00
|
|
|
end
|