Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Literals that are the concatination of all descendant text nodes #58

Open
brechtvdv opened this issue Sep 28, 2023 · 3 comments
Open

Literals that are the concatination of all descendant text nodes #58

brechtvdv opened this issue Sep 28, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@brechtvdv
Copy link

For the case of Local Decisions as Linked Open Data (LBLOD), municipalities publish the content of their decisions using deeper nested Articles as follows:

<div prefix="eli: http://data.europa.eu/eli/ontology# foaf: http://xmlns.com/foaf/0.1/ besluit: http://data.vlaanderen.be/ns/besluit# prov: http://www.w3.org/ns/prov#" resource="http://data.lblod.info/id/besluiten/72b89f05-7398-4c12-890c-a130decac4f8" typeof="besluit:Besluit">
  <h5>Beslissing</h5>
  <div property="prov:value" datatype="xsd:string">
    <div property="eli:has_part" resource="http://data.lblod.info/artikels/f3366b82-3751-4333-8531-b9b58b6ccb7f" typeof="besluit:Artikel">
      <div property="eli:number" datatype="xsd:string">Artikel 1</div>
      <div property="prov:value" datatype="xsd:string">
        Goedkeuring werd verleend aan...
      </div>
    </div>
    <br>
    <br>
  </div>
</div>

Using the RDFa playground, this returns following triple:

<http://data.lblod.info/id/besluiten/72b89f05-7398-4c12-890c-a130decac4f8>
   <http://www.w3.org/ns/prov#value> "
    
      Artikel 1
      
        Goedkeuring werd verleend aan...
      
    
    
    
  "^^xsd:string;

However, with RDF play, I receive this triple:

<http://data.lblod.info/id/besluiten/72b89f05-7398-4c12-890c-a130decac4f8> <http://www.w3.org/ns/prov#value> "\n      \n        \n        \n      \n      \n      \n    "

According to the RDFa spec (step 11), this should be the concatination of the values of all descendant text nodes.

@rubensworks rubensworks added the bug Something isn't working label Oct 9, 2023
@rubensworks
Copy link
Owner

Something is probably going wrong due to the nested RDFa tags inside the prov:value tag.

@nvdk
Copy link

nvdk commented Nov 16, 2023

@rubensworks but this is specifically allowed by the rdfa spec right? if you could hint at a possible solution we might be able to help out.

@rubensworks
Copy link
Owner

Yep, I also think the spec allows this. Probably a bug somewhere here: https://github.com/rubensworks/rdfa-streaming-parser.js/blob/master/lib/RdfaParser.ts#L579-L593

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants