Thellmann / callimachus

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

Property expressions are not always parsed by RDFa parser #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The two property expressions below are ignored by the RDFa parser. This can be 
see in the ?triples and ?sparql responses.

<span rel="vcard:org">
  <span typeof="vcard:Organization">
    <input title="Organization name" value="{vcard:organization-name}" />
    <input title="Organization unit" value="{vcard:organization-unit}" />
    <button type="button" class="remove" />
  </span>
  <button type="button" class="add" />
</span>

Original issue reported on code.google.com by *...@talis.com on 24 Jun 2011 at 3:18

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by *...@talis.com on 24 Jun 2011 at 3:34

Attachments:

GoogleCodeExporter commented 9 years ago
These were the first examples with a hyphen in the name.
Updated property expression regex to \{([^ \}\?\"\':]*):([^ \}]+)\} in both 
RDFaReader and RDFaProducer.
The reference part of the curie may be anything except '}' marking the end of 
the property-expression,
or space to eliminate CSS such as { font-family: 'aerial' }. This would be a 
problem with spaces removed, we'd need to consider the context.

Original comment by steven.a...@gmail.com on 24 Jun 2011 at 7:35

GoogleCodeExporter commented 9 years ago
Quotes should not be allowed in the reference part of the CURIE.

Original comment by *...@talis.com on 27 Jun 2011 at 1:35

GoogleCodeExporter commented 9 years ago
The property expression regex is now defined in a single place (RDFaReader) and 
is used by RDFaProducer.
The new regex \{([^ \}\?\"\':]*):([^ \"\']+)\} excludes quotes in the reference.

Original comment by steven.a...@gmail.com on 27 Jun 2011 at 5:49