On 16/07/14 13:57, Zahir Kali wrote:
Hello,
i am working about inferences using Jena Generic Rule Engine. I would add an
information to an individual property.
I have this:
<owl:NamedIndividual rdf:about="&data;applications-271066">
<rdf:type rdf:resource="&data;applications"/>
<data:app-nivhie rdf:datatype="&xsd;string">3</data:app-nivhie>
<data:appartient-a rdf:resource="&data;sous-systemes-258399"/>
<data:eap-cod rdf:datatype="&xsd;string">SAGEQI</data:eap-cod>
<data:eap-nom rdf:datatype="&xsd;string">Sage Quai de l'Image</data:eap-nom>
<data:eap-rspetu rdf:datatype="&xsd;string">ET NA</data:eap-rspetu>
<data:eap-rspprd rdf:datatype="&xsd;string">PF HEBERGEMENT</data:eap-rspprd>
<data:eap-typ rdf:datatype="&xsd;string">Progiciel</data:eap-typ>
<data:eap-typobj rdf:datatype="&xsd;string">Application</data:eap-typobj>
</owl:NamedIndividual>
i would would say:if data:eap-nom = "SAGEQI" => add new attributedata:type="application"
attr="NEW". I know how add the property data:type, but i don't know how add the information attr="NEW"
That notation (attr="NEW") doesn't mean anything to me.
I recommend that you write down your starting set of triples and the set
of triples that you want to end up with using Turtle. That way you force
yourself to work out how your information is going to be represented.
At that point it'll probably become clear how to do this in a rule.
If not then you can come back to us with a clearer statement of what you
are trying to do.
Dave