Thellmann / callimachus

Automatically exported from code.google.com/p/callimachus
Other
0 stars 0 forks source link

When @property is on element with @rel/@resource its presence is required #20

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The following markup fails if a concept in /scheme/mediums/ has no prefLabel

<div xmlns:dcterms="http://purl.org/dc/terms/">
<label for="medium">Medium</label>
<select id="medium" rel="dcterms:medium">
  <option selected="selected" about="?concept" rev="calli:hasComponent" resource="/scheme/mediums/" property="skos:prefLabel" />
</select>
</div>

The produced SPARQL puts the skos:prefLabel in a nested OPTIONAL blocks. 
However, the prefLabel property, in this case, must be bound to produce an 
option element.

Original issue reported on code.google.com by ja...@3roundstones.com on 16 Jan 2012 at 2:28