Re: Ranging Properties

Knud Hinnerk Möller wrote:
> Hi,
> 
> On 21 Sep 2010, at 23:26, Nathan wrote:
> 
>> ...
>>
>> Ranging properties:
>> Forgive my newness on this one, but has any work/discussion previously gone in to setting the type of an object based on the range of the property, for instance the range of foaf:name is foaf:Document.
> 
> you mean foaf:homepage, right?

yup apologies

>> Thus it should be pretty easy to determine that if somebody writes:
>> <span property="foaf:homepage">http://www.w3.org</span>
>> Then the triple produced should be
>> :x foaf:homepage <http://www.w3.org>
>> as this is the only valid triple possible.
> 
> As far as I know, this kind of processing - interpreting the rdfs:range of a property, or distinguishing that it was declared as an owl:ObjectProperty vs. an owl:DatatypeProperty - is happening at a higher level than just the syntactic parsing of an RDF serialisation. You would need some kind of RDFS or OWL reasoning in place (or a simple rule for cases like this). So, I'm not sure how people would react if we put something like this into RDFa Core. 
> 
> On the other hand, it could be interesting to include this into an RDFa parser, to make it more robust and lenient. It would be like Web browsers accepting invalid HTML and guessing what was probably meant by it. On the one hand this might help to improve the growth of RDFa, on the other hand it might lead to chaos. 

Indeed, it may be more API territory, might give it a go this week only 
considering range of properties and see how it goes.

Best,

Nathan

Received on Wednesday, 22 September 2010 10:54:53 UTC