Closed yoavnash closed 3 years ago
The following code shows that some namespaces are missing:
from osp.core.namespaces import math, metrology
from osp.core.utils import get_rdf_graph
g = get_rdf_graph()
for ns_prefix, namespace in g.namespaces():
print(ns_prefix, namespace)
Output:
xml http://www.w3.org/XML/1998/namespace
rdf http://www.w3.org/1999/02/22-rdf-syntax-ns#
rdfs http://www.w3.org/2000/01/rdf-schema#
xsd http://www.w3.org/2001/XMLSchema#
This line shows that there's namespace binding in the installation step, but it appears that some disappear somewhere along the way.
@yoavnash I assume this should not be hard to fix. I will have a look at it as soon as possible.
The function
serialize_rdf_graph
creates an RDF file whose namespaces are not defined (and thereforeuc1
,uc2
, etc. are used instead), although they are defined in the configuration YAML file used to install the underlying ontology.Exported file:
From
emmo.yml
: