Virtual graph and reasoning

2 views
Skip to first unread message

nata...@gmail.com

unread,
Dec 3, 2015, 7:09:54 AM12/3/15
to Stardog
Hi,
 
I have created a virtual graph. Simple queries work, no problem.
 
For example

SELECT * {

   GRAPH <virtual://demo> {

      app:0012b8e0-7a6d-4bcf-b2c3-b5c235afa9d8 a cim:TroubleTicket ;

                        ?p ?o

   }

}

 
But I also have a Stardog DB which has loaded an RDFS model (RDFS reasoning enabled).
 
And I query like this (in console of correct DB)
SELECT ?p ?o
WHERE
{
  { app:0012b8e0-7a6d-4bcf-b2c3-b5c235afa9d8 ?p ?o }
UNION
  { GRAPH <virtual://demo> { app:0012b8e0-7a6d-4bcf-b2c3-b5c235afa9d8 ?p ?o } }
}
 
Then I get expected results with reasoning off and connection pool error with reasoning on.

Error!

com.complexible.stardog.plan.eval.operator.OperatorException: org.apache.tomcat.jdbc.pool.PoolExhaustedException: [StardogServer.WorkerGroup-2] Timeout: Pool empty. Unable to fetch a connection in 30 seconds, none available[size:20; busy:20; idle:0; lastwait:30000].

 
Basically all I want is to resolve supertypes of currently selected type. Which works just fine if I select a subject which is in the triplestore (and not in virtual graph). Like
select * WHERE  {
}
returning supertypes 
? rdf:type ? cim:EquipmentContainer
? rdf:type ? cim:IdentifiedObject
? rdf:type ? cim:Bay
So, long story short question: are virtual graphs supporting reasoning based on a model in a stardog DB?
Is there a way to achieve this? 

thx, Natan

Evren Sirin

unread,
Dec 3, 2015, 9:06:19 AM12/3/15
to Stardog
Reasoning with virtual graphs is currently not supported but we are
working on that (issue 2690). This feature will be available in one of
the upcoming releases.

Best,
Evren
> --
> -- --
> 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

nata...@gmail.com

unread,
Dec 4, 2015, 1:14:50 AM12/4/15
to Stardog
Allright. Thanks for the answer!

N
Reply all
Reply to author
Forward
0 new messages