buildingSMART / bSDD

The buildingSMART Data Dictionary repository, where we publish the documentation, examples and more. We don't publish here the data, the source code of the bSDD service or the front end of the website.
https://www.buildingsmart.org/users/services/buildingsmart-data-dictionary/
MIT License
129 stars 36 forks source link

[RDF/XML] Improve namespace declarations #61

Closed lemoinet closed 1 year ago

lemoinet commented 1 year ago

This can be simpliffied

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE rdf:RDF [

<!ENTITY rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
<!ENTITY rdfs 'http://www.w3.org/2000/01/rdf-schema#'>
<!ENTITY xsd 'http://www.w3.org/2001/XMLSchema#'>
<!ENTITY bsdd 'http://bsdd.buildingsmart.org/def#'>
<!ENTITY qudtUnit 'http://qudt.org/vocab/unit/'>
<!ENTITY pdt1_0 'https://identifier.buildingsmart.org/uri/pdt/pdt/1.0'>
]>
<rdf:RDF xml:base="https://identifier.buildingsmart.org/uri/pdt/pdt/1.0/class/suspendedceilingkit" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:xsd="http://www.w3.org/2001/XMLSchema#" xmlns:bsdd="http://bsdd.buildingsmart.org/def#" xmlns:qudtUnit="http://qudt.org/vocab/unit/" xmlns:pdt1_0="https://identifier.buildingsmart.org/uri/pdt/pdt/1.0" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">

to this:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE rdf:RDF [

<!ENTITY rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
<!ENTITY rdfs 'http://www.w3.org/2000/01/rdf-schema#'>
<!ENTITY xsd 'http://www.w3.org/2001/XMLSchema#'>
<!ENTITY bsdd 'http://bsdd.buildingsmart.org/def#'>
<!ENTITY qudtUnit 'http://qudt.org/vocab/unit/'>
<!ENTITY pdt1_0 'https://identifier.buildingsmart.org/uri/pdt/pdt/1.0'>
]>
<rdf:RDF xml:base="https://identifier.buildingsmart.org/uri/pdt/pdt/1.0/class/suspendedceilingkit" xmlns:rdfs="&rdfs;" xmlns:xsd="&xsd;" xmlns:bsdd="&bsdd;" xmlns:qudtUnit="&qudtUnit;" xmlns:pdt1_0="&pdt1_0;" xmlns:rdf="&rdf;">
atomczak commented 1 year ago

Thanks, we will consider it.

Baars-IT commented 1 year ago

We're using library dotNetRDF for generating the RDF output. As it is just a very small improvement we'll just use what this library delivers.