New Individuals. Stardog 2.0.3

3 views
Skip to first unread message

kasios J

unread,
Dec 18, 2013, 7:11:03 AM12/18/13
to sta...@clarkparsia.com
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!

Mike Grove

unread,
Dec 19, 2013, 2:37:20 PM12/19/13
to stardog
On Wed, Dec 18, 2013 at 7:11 AM, kasios J <prince...@gmail.com> wrote:
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.

Can you provide the complete input that demonstrates the behavior?

Cheers,

Mike
 

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!

--
-- --
You received this message because you are subscribed to the C&P "Stardog" group.
To post to this group, send email to sta...@clarkparsia.com
To unsubscribe from this group, send email to
stardog+u...@clarkparsia.com
For more options, visit this group at
http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en

Reply all
Reply to author
Forward
0 new messages