WARNING: This server provides a static reference view of the NetKernel documentation. Links to dynamic content do not work. For the best experience we recommend you install NetKernel and view the documentation in the live system .

Endpoint
Name:jena.RDFSelect
Description:Select from a Jena RDF Model using a simple XML selection declaration
Id:jena.RDFSelect
Category:accessor
Identifier Syntax

jena.RDFSelect is an accessor using Active URI syntax with the following base identifiers:

Base
active:jRDFSelectFromModel

and the following arguments: (for more details on argument passing details see here)

ArgumentRulesTypingDescription
operand
Mandatory
Representation (java.lang.Object)model to select from
operator
Mandatory
Representation (java.lang.Object)declarative selection
Request Verbs

The following verb is supported:

Verb
SOURCE
Response

The response representation of this accessor for SOURCE requests is unknown.

This accessor throws no documented exceptions.

Import Requirements

To use jena.RDFSelect accessor you must import the module urn:org:netkernel:rdf:jena:

<import>
  <uri>urn:org:netkernel:rdf:jena</uri>
</import>

The jRDFSelectFromModel accessor takes a declarative XML structured selection criteria and uses it to select a subset of the specified model. Returns the selected model.

operator

The operator is an XML document of the following form...

<jRDFSelectFromModel>
  <selector>
    <resource>http://www.1060.org/forum/</resource>
    <property>
      <namespace>http://mydescriptive/namespace</namespace>
      <name>property</name>
    </property>
    <value type="xs:string">some value</value>
  </selector>
  <selector>
    <resource>http://www.1060research.com</resource>
  </selector>
</jRDFSelectFromModel>
Selection criterion are expressed as first-child elements of the root node "jRDFSelectFromModel". Any number of selections may be specified. Note the order of selections is not significant. The selector is specified as follows:

selector - selects all resources from the Model which match the defined selection criteria - all selection criteria are optional and in each case if no argument is supplied then all resources will match for that criterion. Criteria are:

  • resource The URI of the resource
  • property The URI of the property describing the resource which is expressed in two parts:
    • namespace - the namespace URI base
    • name - the name to append to the namespace base
  • value - this is the value to associate with the resource. By default this is a URI. If the optional "@type" attribute is specified it may specify an XML Schema data type (for example "xs:string")