PREFIX sds: <http://semantic-data-store.de/resource/sds/>
PREFIX ibmi: <http://semantic-data-store.de/resource/sds/ibmi/>
PREFIX sds-p: <http://semantic-data-store.de/property/sds#>
PREFIX ibmi-p: <http://semantic-data-store.de/property/sds/ibmi#>
PREFIX result: <#>
# Construct list of all libraries
CONSTRUCT {
?library a ibmi:Library;
result:files ?object.
} WHERE {
?library a ibmi:Library.
?object a ibmi:Object;
ibmi-p:objectMemberOfLibrary ?library;
}
# Select a list of all objects in libraries with object information
SELECT ?object ?objectSize WHERE {
?object a ibmi:Object;
ibmi-p:objectSize ?objectSize.
}
# Select all types of available links
SELECT ?source ?target ?type WHERE {
?target a ibmi:Object.
?source a ibmi:Object.
{
?source ibmi-p:isView ?target.
BIND("isView" AS ?type)
} UNION {
?source ibmi-p:isJoin ?target.
BIND("isJoin" AS ?type)
} UNION {
?source ibmi-p:isSelect ?target.
BIND("isSelect" AS ?type)
}
}