Loading TOC...

MarkLogic 10 Product Documentation
Client API (Semantics)

Use the interfaces in this section to manage and query semantic graph data. The API capabilities include the following:
  • Insert, merge, or replace triples.
  • Retrieve a graph.
  • Perform a SPARQL query.

NOTE: The collection lexicon must be enabled on your database when using the semantics interfaces. You can check the configuration using the Admin Interface. See Configuring the Database to Work with Triples in the Semantic Graph Developer's Guide in the Semantics Developer's Guide.

For more information, see Loading Triples in the REST Application Developer's Guide, Querying Triples in the REST Application Developer's Guide, and the Semantics Developer's Guide.

8 resources
Resource URI Description
/v1/graphs (DELETE) Remove triples in a named graph or the default graph, or remove all graphs from the triple store.
/v1/graphs (GET) Retrieve the contents or permissions metadata of a graph, or a list of available graph URIs.
/v1/graphs (HEAD) Returns the same headers as an equivalent GET on the /graphs service.
/v1/graphs (POST) Merge quads into the triple store, or merge other types of triples into a named graph or the default graph.
/v1/graphs (PUT) Create or replace quads in the triple store; or create or replace other kinds of triples in a named graph or the default graph; or replace the permissions on a named graph or the default graph.
/v1/graphs/sparql (GET) Perform a SPARQL query on the database.
/v1/graphs/sparql (POST) Perform a SPARQL query or SPARQL Update on one or more graphs.
/v1/graphs/things (GET) With no parameters, returns a list of subject IRIs in the triple index.