Skip to content

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

@brechtvdv

Description

@brechtvdv

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions