I am having a problem where I would like to query a named graph and a default graph at the same time, but specifying 'FROM' or 'FROM NAMED' in my SPARQL query seems to make all the triples in the default stardog graph disappear. I imagine the solution is to include the URI for the default stardog graph in the query, but I cannot find the URI. I have tried <DEFAULT> and <default> to no avail. Can someone tell me the IRI of the default graph in my stardog database? Or can they tell me the right way to do this if I am going about this the wrong way? Below is a simple example query and the real query for what I want to do.I have some triples in the default graph and some triples in two named graphs, call them 'http://muscle' and 'http://cns'. I would like to query using the default graph and one of the named graphs, like:SELECT *FROM <DEFAULT>FROM NAMED <http://muscle>WHERE {GRAPH <http://muscle> {?a <affects> <target> .}?b <related_to> ?a .}The actual query is:PREFIX syndb:<http://purl.synaptomedb.org/owl/>PREFIX mb:<http://purl.mirbase.org/owl/>PREFIX ts:<http://purl.targetscan.org/owl/>PREFIX ex:<http://purl.example.com/owl/>PREFIX obo:<http://purl.obolibrary.org/obo/>PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>PREFIX up:<http://purl.uniprot.org/core/>PREFIX taxon:<http://purl.uniprot.org/taxonomy/>PREFIX db:<http://purl.example.com/database/>SELECT DISTINCT ?geneFROM NAMED <http://purl.example.com/graph/mcneill_muscle>WHERE {# focus on a specific tissue screen# drosophila mirbase ids regulating affy ids?mid ex:regulates ?affy .?mid up:organism taxon:7227 .?mid up:database db:mirbase_id .?affy up:database db:affymetrix_probeset}# flybase genes mapping to the affy ids?affy rdfs:seeAlso ?gene .?gene up:database db:flybase_gene .# map from original mirbase id to all possible mirbase ids for the mature# mirbase accession.?macc mb:has_id <http://purl.mirbase.org/mirna_id/dme-miR-190> .?macc mb:has_id ?mid .?macc a mb:mature_mirna .}Thank you for any help you can give.Regards,Todd--
-- --
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