aConn.begin();      aConn.add().io()           .context(               SimpleValueFactory.getInstance().createIRI("urn:targetGraph"))           .format(RDFFormat.TRIG)           .stream(request.getInputStream());      aConn.commit();{<urn:default> <urn:default> <urn:default> .}GRAPH <urn:graph> {<urn:graph> <urn:graph> <urn:graph> .}# Query 1
SELECT * { ?s ?p ?o }
# - results
{  "head": {    "vars": [ "s" , "p" , "o" ]  } ,  "results": {    "bindings": [      {        "s": { "type": "uri" , "value": "urn:default" } ,        "p": { "type": "uri" , "value": "urn:default" } ,        "o": { "type": "uri" , "value": "urn:default" }      } ,      {        "s": { "type": "uri" , "value": "urn:graph" } ,        "p": { "type": "uri" , "value": "urn:graph" } ,        "o": { "type": "uri" , "value": "urn:graph" }      }    ]  }}
###
# Query 2
SELECT * { GRAPH ?g {?s ?p ?o} }
# - results
{  "head": {    "vars": [ "s" , "p" , "o" , "g" ]  } ,  "results": {    "bindings": [      {        "s": { "type": "uri" , "value": "urn:graph" } ,        "p": { "type": "uri" , "value": "urn:graph" } ,        "o": { "type": "uri" , "value": "urn:graph" } ,        "g": { "type": "uri" , "value": "urn:graph" }      }    ]  }}
### 
# Query 3
SELECT DISTINCT ?g { graph ?g { ?s ?p ?o }}
# - results
{  "head": {    "vars": [ "g" ]  } ,  "results": {    "bindings": [      {        "g": { "type": "uri" , "value": "urn:graph" }      }    ]  }}GRAPH <urn:targetGraph> {<urn:default> <urn:default> <urn:default> .}GRAPH <urn:graph> {<urn:graph> <urn:graph> <urn:graph> .}--
-- --
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