2020-04-10 21:40:33 +00:00
|
|
|
defmodule RDF.Utils.Bootstrapping do
|
|
|
|
@moduledoc !"""
|
2020-06-29 08:37:42 +00:00
|
|
|
This module holds functions to circumvent circular dependency problems.
|
|
|
|
"""
|
2020-04-10 21:40:33 +00:00
|
|
|
|
2020-05-05 21:58:44 +00:00
|
|
|
@xsd_base_iri "http://www.w3.org/2001/XMLSchema#"
|
2020-04-10 21:40:33 +00:00
|
|
|
@rdf_base_iri "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
|
|
@rdfs_base_iri "http://www.w3.org/2000/01/rdf-schema#"
|
|
|
|
@owl_base_iri "http://www.w3.org/2002/07/owl#"
|
|
|
|
|
2020-05-05 21:58:44 +00:00
|
|
|
def xsd_iri_base(), do: RDF.IRI.new(@xsd_base_iri)
|
2020-04-10 21:40:33 +00:00
|
|
|
def rdf_iri_base(), do: RDF.IRI.new(@rdf_base_iri)
|
|
|
|
def rdfs_iri_base(), do: RDF.IRI.new(@rdfs_base_iri)
|
|
|
|
def owl_iri_base(), do: RDF.IRI.new(@owl_base_iri)
|
|
|
|
|
2020-05-05 21:58:44 +00:00
|
|
|
def xsd_iri(term), do: RDF.IRI.new(@xsd_base_iri <> term)
|
2020-04-10 21:40:33 +00:00
|
|
|
def rdf_iri(term), do: RDF.IRI.new(@rdf_base_iri <> term)
|
|
|
|
def rdfs_iri(term), do: RDF.IRI.new(@rdfs_base_iri <> term)
|
|
|
|
def owl_iri(term), do: RDF.IRI.new(@owl_base_iri <> term)
|
|
|
|
end
|