Traversing Topic Map Structures

Top  Previous  Next

The Web3 Platform implementation of SPARQL provides a number of "built-in" predicates that allow queries to be written that directly query the underlying topic map structures. These predicates can be used to construct more complex queries that are not possible with the short-cuts provided for retrieving topic property values and related topics.

 

All of the built-in predicates are contained in the namespace http://www.networkedplanet.com/tmsparql/.

 

Predicate

Description

reifier

Maps an association or topic property as the predicate subject to the topic that reifies that item as the object.

value

Maps a topic property as the predicate subject to the value of that property as the object.

integerValue

Maps a topic property as the predicate subject to the integer value of that property as the object. Results in no mapping if the topic property has a value of a different data-type.

decimalValue

Maps a topic property as the predicate subject to the integer value of that property as the object. Results in no mapping if the topic property has a value of a different data-type.

doubleValue

Maps a topic property as the predicate subject to the integer value of that property as the object. Results in no mapping if the topic property has a value of a different data-type.

dateTimeValue

Maps a topic property as the predicate subject to the integer value of that property as the object. Results in no mapping if the topic property has a value of a different data-type.

topicProperty

Maps a topic as the predicate subject to all of its topic properties as the predicate object.

label

Maps a topic as the predicate subject to all of its labels as the predicate object.

This predicate can be further refined by adding /{language code} to the end of the predicate URI, resulting in a mapping of the topic as the predicate subject to the label for that topic in the specified language as the predicate object.

subjectIdentifier

Maps a topic as the predicate subject to all of its subject identifier URIs as the predicate object.

subjectLocator

Maps a topic as the predicate subject to all of its subject locator URIs as the predicate object.

itemIdentifier

Maps a topic as the predicate subject to all of its item identifier URIs as the predicate object.

role

Maps an association as the predicate subject to all of its roles as the predicate object.

player

Maps a role as the predicate subject to the topic that plays that role as the predicate object.

scope

Maps an association or topic property as the predicate subject to all of the topics in its scope as the predicate object.

created

Maps a topic, association, role or topic property as the predicate subject to the date/time when that item was first created in the Web3 store as the predicate object.

modified

Maps a topic, association, role or topic property as the predicate subject to the date/time when that item was last modified in the Web3 store as the predicate object.