Dear friends, I am running a rule in a data set, which has the following format:
<j.0:Entity rdf:about=" http://www.example.com/onto/gleif1.owl#097900BHID0000080614"> <rdfs:label xml:lang="ia">ord:urn:iso:std:iso:17442:2019:ed-1:v2:en:[097900BHID0000080614]</rdfs:label> <rdfs:label xml:lang="en">scope s.r.o.</rdfs:label> <j.0:registration_Authority_entity_ID>search_ID</j.0:registration_Authority_entity_ID> <j.0:registration_Authority_ID>RA000526</j.0:registration_Authority_ID> <j.0:legal_Name>scope s.r.o.</j.0:legal_Name> * <j.0:has_ord>ord:urn:iso:std:iso:17442:2019:ed-1:v2:en:[097900BHID0000080614]</j.0:has_ord>* <owl:versionInfo>1</owl:versionInfo> where I want to obtain the *has_ord* property value with the rule: String rule_rid= "[rule1: (?b "+rdf_ns+"type "+GLEIF1_NS+"Entity) " + "(?b "+GLEIF1_NS+"registration_Authority_entity_ID "+"'"+search_ID+"')"//get all gleif entities ID + "-> (?b "+GLEIF1_NS+"has_ord ?ord)]";//put the output The rule is triggered as expected, however the value in the output does not corresponds to the real value: output: http://www.example.com/onto/gleif1.owl#has_ord, *ae791d81-7538-49ac-9436-898ede09d7b5*] but, it should be: http://www.example.com/onto/gleif1.owl#has_ord,* ord:urn:iso:std:iso:17442:2019:ed-1:v2:en:[097900BHID0000080614] ]* I am running the jena rule against a model stored in a tdb database. Thanks in advanced for your support. Luis Ramos
