This content has been marked as final. Show 2 replies
Although I don't know what you've asked. But perhaps you can help me in a somewhat similar situation.
I am trying with a rule like this:
insert into mdsys.rdfr_RuleBase1 valuesThe purpose behind this rule is something like:
( 'Rule1' ,
'( ?instance rdf:type :ClassA)
(?instance :has_PropertyA ?a) (?a :hasValue ?c)',
'REGEXP_like(c, ''Open'')' ,
'(?instance :has_PropertyB ?b) (?b :hasValue "HIGH")' ,
If I query for all instaces for ClassA that have the value of the property has_PropertyA as Open, then it should also give me all the instances that have a value for the property has_PropertyB as HIGH.
But when I query using this rule I donot get the required results.
The query is:
select j ID, c propertyA, d propertyB from tableBut, I do not get all the extra instances that have propertyB = HIGH. I only get some extra instances wherein propertyA = Open and propertyB = HIGH. The query result leaves many instances where propertyB=HIGH, but the propertyA has many other values.
( sdo_rdf_match ( '( ?instance rdf:type :ClassA)
(?instance :has_PropertyA ?a) (?a v2:hasValue ?c)
(?instance :has_ID ?i) (?i :hasValue ?j)
(?instance :has_PropertyB ?b) (?b :hasValue ?d)',
sdo_rdf_models( 'Model1' ) ,
Can you help me come out of the dark?
Oracle 11g does not support generation of new URIs via inference.
However, you can use query + insert to simulate that.