JRDF GraphsJRDF graphs are made up of triples (RDF statements). JRDF graphs can also represent parts of other JRDF graphs (known as subgraphs). JRDF graphs can create graph elements and be queried using triples. The elements (classes) that make up a JRDF graph are as follows:
The following diagram shows the relationships between the different elements. JRDF graph elements are created using a GraphElementFactory. TriplesTriples are made up of three nodes, a SubjectNode, PredicateNode and ObjectNode, representing an RDF statement. SubjectNodesA SubjectNode represents an RDF resource (that is, the subject you are describing) and can be either a URIReference or BlankNode. A Literal cannot be a SubjectNode. PredicateNodesA PredicateNode represents a property (that is, a characteristic or attribute) of a resource. A PredicateNode can only be a URIReference. A PredicateNode describes the relationship between a SubjectNode and an ObjectNode and cannot be a BlankNode or a Literal. ObjectNodesAn ObjectNode represents the value of a property. ObjectNodes can be either URIReferences, BlankNodes or Literals. URIReferencesA URIReference combines a URI (Uniform Resource Identifier) and an optional fragment identifier to identify or represent a SubjectNode, PredicateNode or ObjectNode in a Triple. BlankNodesBlankNodes represent intermediate nodes used for representing structured information. For example, an address can be represented either by using a Literal for the whole address, or with a BlankNode as the SubjectNode and subsequent PredicateNodes and ObjectNodes for the different address elements. Unlike other RDF representations, JRDF does not support labelled BlankNodes. LiteralsA Literal represents a constant value (for example "some literal text"). Literals can optionally have either a datatype URI (for example, GraphElementFactoryGraph elements are created using a GraphElementFactory. A GraphElementFactory creates URIReferences, BlankNodes and Literals that are used to create triples. Querying a JRDF GraphUsing a triple as a constraint, JRDF graphs can be queried to find all of the triples that match the constraint. Null values are used as wildcards. Querying a JRDF graph using null SubjectNodes, PredicateNodes and ObjectNodes returns all the triples in the graph. |
Latest NewsKowari 1.1.0 Pre-release 1 Released ![]() ![]() |
|||||
© 2001-2004 Tucana Technologies, Inc. Some rights reserved. |