Hello!
I'm trying to generate new individuals with this rule:
[] a rule:SPARQLRule ;
rule:content """
PREFIX :<urn:test:>
IF {
?e a untitled-ontology-12:MyEvent .
BIND (UUID() AS ?r) .
}
THEN {
?r a untitled-ontology-12:MyActivation .
}""" .
The problems comes because it duplicates the individuals.
When I run this SPARQL:stardog query "finalStar;reasoning=SL" "SELECT ?s WHERE {?s a untitled-ontology-12:MyEvent}"
+--------------------------------+
| s |
+--------------------------------+
| untitled-ontology-12:EventTest |
+--------------------------------+
Then, when I run this, it should give me only one entrie: stardog query "finalStar;reasoning=SL" "SELECT ?s WHERE {?s a untitled-ontology-12:MyActivation}"
+-----------------------------------------------+
| s |
+-----------------------------------------------+
| urn:uuid:1ac30194-ed05-4159-b244-54c561d67f11 |
| urn:uuid:94f4be63-a7ba-4759-900d-c322f9039eb9 |
+-----------------------------------------------+
How can i avoid this?
Thanks!