Hi,

            I'm putting out this request to the community at large to see if
there are ideas that I'm unaware of. I have a fairly large database of
roughly 1.5 million triples. It is populated with many sets of roughly 450
triples which share the same namespace. Many of my operations involve
retrieving one of those sets of triples, but I'm finding it takes about 7
seconds to execute on TBL, installed on a 16GB AWS instance. Here is the
SPARQL query I'm using to get a set of triples:

 

 

PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>

SELECT ?s ?p ?o

WHERE {

GRAPH <http://mygraph> {

    ?s ?p ?o .

    FILTER (afn:namespace(?s) = "http://mynamespace#";) .

}}

 

 

Is there some clever way to pull just the triples in a single namespace that
doesn't involve using ?s ?p ?o followed by a FILTER?

Brilliant ideas welcome!

 

 

- Steve

 

Steven R. Ray, Ph.D.

Distinguished Research Fellow

Carnegie Mellon University

NASA Research Park

Building 23 (MS 23-11)

P.O. Box 1
Moffett Field, CA 94305-0001

Email:    [email protected]

Phone: (650) 587-3780

Cell:      (202) 316-6481

Skype: steverayconsulting

cid:[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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to