Searching only in default graph (and not in other named-graphs)

6 views
Skip to first unread message

Samy Deghou

unread,
Aug 23, 2016, 7:51:55 AM8/23/16
to Stardog
Hi,

We have a db with two graphs : the default graph and the autosuggest graph.
Is is possible for a given query to search only the the default graph  without setting the  query.all.graphs option to false ?


select * from  <tag:stardog:api:context:all> # this tells stardog to search in all graph
#select * from  <http://materials.springer.com/autosuggest/> # this tells stardog to search only the autosuggest named-graph
#How to search outside of the named-graph only without desactivating the query.all.graphs option ?
where{
...
}


cheers,

samy

Michael Grove

unread,
Aug 23, 2016, 7:53:38 AM8/23/16
to stardog
You can use the alias for the default graph `tag:stardog:api:context:default`.

Cheers,

Mike
> --
> -- --
> 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