i am working about inferences on Jena. I would test that a property is a particular string. I have an ontology about servers, an individuals like this:
<owl:NamedIndividual rdf:about="&data;serveur-106216">
<heberge rdf:resource="&data;applications-105049"/>
<rdf:type rdf:resource="&data;serveur"/>
<identifiant-reseau rdf:datatype="&xsd;string">SRVLINMAGZ06</identifiant-reseau>
<status rdf:datatype="&xsd;string">En service</status>
<svr-numero-serie rdf:datatype="&xsd;string">-</svr-numero-serie>
</owl:NamedIndividual>
i would add a new information (new property) to the servers that have a property
identifiant-reseau="POLO"
so, for this i have written a Jena rule like this:
[rule: (?S rdf:type data:serveur), (?S data:identifiant-reseau "POLO")-> (?S data:newproperty "TEST")]
But obviously, the test (?S data:identifiant-reseau "POLO")
don't work.
Have you an idea for do this?
Thank you.