BHoM / RDF_Prototypes

Research project of the Cluster of Excellence "Integrative Computational Design and Construction for Architecture" (IntCDC) https://www.intcdc.uni-stuttgart.de/ **Project Name**: Knowledge Representation for Multi-Disciplinary Co-Design of Buildings. https://www.intcdc.uni-stuttgart.de/research/research-projects/rp-20/
GNU Lesser General Public License v3.0
9 stars 4 forks source link

Adjust Sequence Indexing for RDF Compatibility (Start from 1 instead of 0) #130

Closed DiellzaElshani closed 6 months ago

DiellzaElshani commented 7 months ago

Description:

In RDF, the indices used for RDF sequences (using the rdf:_n notation) typically start from 1, not 0. I was not aware of this earlier, while searching for list formats of literals, I came across it. https://www.w3.org/2007/02/turtle/primer/ image

Our current :Seq elements start with rdf:_0

### https://uni-stuttgart.de/f0978af5-3fd0-6e04-d055-f32d0ea51d17seq
<https://uni-stuttgart.de/f0978af5-3fd0-6e04-d055-f32d0ea51d17seq> rdf:type owl:NamedIndividual,    :rdf:Seq;
            rdf:_0 <https://uni-stuttgart.de/0241fa0c-da61-3c70-048f-89fd4e4492ce> ;
            rdf:_1 <https://uni-stuttgart.de/253fa989-1432-cd78-104c-cebdd348a7c2> .

So instead they should look like:

### https://uni-stuttgart.de/f0978af5-3fd0-6e04-d055-f32d0ea51d17seq
<https://uni-stuttgart.de/f0978af5-3fd0-6e04-d055-f32d0ea51d17seq> rdf:type owl:NamedIndividual,    :rdf:Seq;
            rdf:_1 <https://uni-stuttgart.de/0241fa0c-da61-3c70-048f-89fd4e4492ce> ;
            rdf:_2 <https://uni-stuttgart.de/253fa989-1432-cd78-104c-cebdd348a7c2> .
alelom commented 6 months ago

Closed in #128