Execute the semantic queries and view the results as shown below. This example is the same as the one in Constructing Semantic Queries. You may also compare it to the example after it, which uses an equivalent SeRQL query.
To construct SeRQL or SPARQL queries, equivalent to the semantic ones, follow the example below. The constants from WKBConstants are used for predefined classes and relations. However, if you have your own ontology, you must instead refer to the full URIs, as well as to the Sesame constants for TYPE and LABEL.
Below two SeRQL queries and their SPARQL equivalents are given.