Hi Dan, you can use this fragment to get the "main" active graph
PREFIX teamwork: <http://topbraid.org/teamwork#> SELECT * WHERE { BIND (teamwork:currentMasterGraph() AS ?graph) } from the SPARQL endpoint and the SPARQL panel, assuming the currently active query graph is an asset collection. Using this ?graph you can query fields like the metadata:identifier HTH Holger > On 22 Jun 2023, at 4:44 pm, Dan Segal <[email protected]> wrote: > > Hello, > > I need to identify a Graph URI, or alternatively the metadata:idenfitier > value, where the query returns only for the local graph, ignoring any > included graphs. > > For example: > > SELECT ?graph ?id > WHERE { > ?graph metadata:identifier ?id > } > > returns: > > graph id > urn:x-evn-master:graph1 graph1 > urn:x-evn-master:graph2 graph2 > urn:x-evn-master:graph3 graph3 > > where: > graph1 is the local graph > graph2 and graph3 are Includes > The Graph URIs for all graphs are unknown in advance > How can I filter the query so that it returns only values from graph1, > excluding values from graph2 and graph3? > > Note: In EDG, checking "Return local results only" in the SPARQL Query panel > returns the desired result. However, I need to include the filtering syntax > within the SPARQL query itself. > > Thanks, > > Dan > > > > > -- > The topics of this mailing list include TopBraid EDG and related technologies > such as SHACL. > To post to this group, send email to [email protected] > --- > You received this message because you are subscribed to the Google Groups > "TopBraid Suite Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/topbraid-users/3e7f709f-57ec-4805-902d-4ce9ac0f71d6n%40googlegroups.com > > <https://groups.google.com/d/msgid/topbraid-users/3e7f709f-57ec-4805-902d-4ce9ac0f71d6n%40googlegroups.com?utm_medium=email&utm_source=footer>. -- The topics of this mailing list include TopBraid EDG and related technologies such as SHACL. To post to this group, send email to [email protected] --- You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/CC1C944C-64BE-48D4-9609-DDE45318D234%40topquadrant.com.
