Versa (query Language) - Syntax Examples

Syntax Examples

Get the URIs of all known resources:

all

Get the URIs of all known instances of type edu:Subject:

type(edu:Subject)

Get the rdfs:labels of all edu:Subjects having one or more rdfs:label:

type(edu:Subject) - rdfs:label -> *

Get the URIs of all edu:Subjects having a rdfs:label matching "Russian language":

type(edu:Subject) |- rdfs:label -> eq("Russian language")

Get the URIs of all "super-edu:Subjects" (transitively) of the edu:Subject identified by "http://en.wikipedia.org/wiki/Russian_language":

traverse(@"http://en.wikipedia.org/wiki/Russian_language", @"http://example.com/education#subTopicOf", vtrav:forward, vtrav:transitive)

Read more about this topic:  Versa (query Language)

Famous quotes containing the word examples:

    No rules exist, and examples are simply life-savers answering the appeals of rules making vain attempts to exist.
    André Breton (1896–1966)