1
votes

i inserted json document into Server and using the document created the triples. With the triples using SPARQL process and insert new triples as output in a collection. Now i want to search in triples collection. Like Document search in Java Client api(google like), searching is possible in triples? If not please suggest any solution for above scenario.

2

2 Answers

2
votes

You have multiple powerful options at your disposal here. I'll highlight two:

I suggest you do either on a collection holding your original JSON documents, because you know exactly what's in each one and how your string queries will match. If you instead query the collection containing triples you created with SPARQL, those are managed triples which means many triples are in one document so your constraining queries won't narrow as precisely.

If you really want to search your managed triples you could use this more precise but less efficient approach:

0
votes

There is always the MarkLogic Query Console (http://localhost:8000/qconsole/). Create a new tab, choose the Query type as SPARQL Query (or Update), and choose the Content Source containing the triples.

Place the SPARQL query in the body of the Query console and the query will be executed across all triples in the selected Content Source/