This is the sixth chapter in MarkLogic's "Semantic Developer's Guide". This chapter discusses the principal techniques and tools used for performing semantic queries on RDF triples. It contains a high-level overview of the SPARQL query capabilities available in MarkLogic. Other subjects include wrapping SPARQL queries in XQuery, and queries using JavaScript and XQuery alone.
URL: https://docs.marklogic.com/guide/semantics/semantic-searches
Keywords: Javascript, XQuery, SPARQL, CURIE (Compact URI Expression)
Publisher: MarkLogic
Language: http://id.loc.gov/vocabulary/iso639-2/eng
Time required: P1H
Educational use: professionalDevelopment
Educational audience: professional
Interactivity type: mixed
- Demonstrates a working knowledge of the forms and uses of SPARQL result sets (SELECT, CONSTRUCT, DESCRIBE, and ASK).
- Differentiates between a Default Graph and a Named Graph, and formulates queries using the GRAPH clause.
- Understands how to combine and filter graph patterns using operators such as UNION, OPTIONAL, FILTER, and MINUS.
- Understands the major SPARQL result set modifiers, e.g., to limit or sort results, or to return distinct results only once.
- Understands how the pattern matching of SPARQL queries can be expressed using functionally equivalent constructs in RDF programming libraries.
- Uses RDF libraries to process various types of SPARQL query result.
- Uses RDF-specific programming methods to query RDF data and save the results for further processing.