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:

    In the examples that I here bring in of what I have [read], heard, done or said, I have refrained from daring to alter even the smallest and most indifferent circumstances. My conscience falsifies not an iota; for my knowledge I cannot answer.
    Michel de Montaigne (1533–1592)