Hi,

On 22/05/16 20:56, Paul Akkermans wrote:
All,



I am trying to semantically enrich the following snippet:

<a:Individual rdf:about="#@I661@"

a:sex="F"

</a:Individual>

Note that the value of a:sex is a literal (a String), at least if I'm remembering my RDF/XML right. Re-serialize as Turtle to check.

I tried to do it the following way:

<rdfs:Class rdf:ID="Individual">

<rdfs:comment> An individual named in a GEDCOM file. </rdfs:comment>

<rdfs:subClassOf>

<daml:Restriction>

<daml:onProperty rdf:resource="#sex"/>

<daml:toClass rdf:resource="http://www.w3.org/2000/10/XMLSchema#string"/>

</daml:Restriction>

</rdfs:subClassOf>

<rdfs:subClassOf>

<daml:Restriction>

<daml:onProperty rdf:resource="#sex"/>

<daml:hasValue rdf:resource="F"/>

</daml:Restriction>

</rdfs:subClassOf>

A few problems with that.

Firstly, it's not OWL so there's nothing for an OWL reasoner to do anything with. It think DAML is pretty much deprecated these days, certainly Jena no longer supports it.

Secondly, if you transpose it to OWL then make sure the value you give to the hasValue statement is a literal to match your data. Your example gives it as a Resource (the URI will be relative to the file from which you loaded that ontology).

Dave

Reply via email to