It seems that NeTEx uses nameOfClass to carry explicit class metadata in XML instances. This way of supporting model-driven design and enabling loosely coupled, schema-independent processing across distributed systems. It more or less mimics RDF's ability for having data describe itself.
So in XML, we can see something like this:
<StopPlace id="SP1" nameOfClass="StopPlace"/>
With our xsd2rdf convertet, the XSD would be converted into SHACL/OWL/SKOS where the implemented data would look like this:
:SP1 a netex:StopPlace;
netex:nameOfClass netex-skos:StopPlace .
This is obviously redundant. And probably it's also already redundant in the XSD source. Or maybe it happens to have something like this:
<Entity id="SP1" nameOfClass="StopPlace"/>
In which case the RDF would be:
:SP1 a netex:Entity;
netex:nameOfClass netex-skos:StopPlace .
Question: Why is it needed in the latest version of NeTEx v2.0?
It seems that NeTEx uses
nameOfClassto carry explicit class metadata in XML instances. This way of supporting model-driven design and enabling loosely coupled, schema-independent processing across distributed systems. It more or less mimics RDF's ability for having data describe itself.So in XML, we can see something like this:
<StopPlace id="SP1" nameOfClass="StopPlace"/>With our xsd2rdf convertet, the XSD would be converted into SHACL/OWL/SKOS where the implemented data would look like this:
:SP1 a netex:StopPlace; netex:nameOfClass netex-skos:StopPlace .This is obviously redundant. And probably it's also already redundant in the XSD source. Or maybe it happens to have something like this:
<Entity id="SP1" nameOfClass="StopPlace"/>In which case the RDF would be:
:SP1 a netex:Entity; netex:nameOfClass netex-skos:StopPlace .Question: Why is it needed in the latest version of NeTEx v2.0?