uk.ac.cam.spectra
Interface MetadataProperty

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
DateProperty, IntegerProperty, LiteralProperty

public interface MetadataProperty
extends java.io.Serializable

A munging of a predicate URI and object type, to remove some of the complexities of RDF and XSI types from API clients.

Author:
ojd20

Method Summary
 void add(com.hp.hpl.jena.rdf.model.Resource targetResource, java.lang.Object value)
           
 com.hp.hpl.jena.rdf.model.Property asProperty(com.hp.hpl.jena.rdf.model.Model m)
           
 java.lang.String decode(com.hp.hpl.jena.rdf.model.RDFNode value)
           
 java.lang.String getElement()
          Predicate element name.
 java.lang.String getNamespace()
          Predicate namespace.
 java.lang.String getXsiType()
           
 boolean isLiteral()
           
 java.net.URI toURI()
          Get predicate URI.
 java.lang.String toURIString()
          Convenience method when dealing with frameworks that model uris as strings.
 boolean valid(com.hp.hpl.jena.rdf.model.RDFNode value, com.hp.hpl.jena.rdf.model.Model targetModel)
           
 

Method Detail

getElement

java.lang.String getElement()
Predicate element name.

Returns:

getNamespace

java.lang.String getNamespace()
Predicate namespace.

Returns:

toURI

java.net.URI toURI()
Get predicate URI.

Returns:

toURIString

java.lang.String toURIString()
Convenience method when dealing with frameworks that model uris as strings.

Returns:

isLiteral

boolean isLiteral()

getXsiType

java.lang.String getXsiType()

valid

boolean valid(com.hp.hpl.jena.rdf.model.RDFNode value,
              com.hp.hpl.jena.rdf.model.Model targetModel)

asProperty

com.hp.hpl.jena.rdf.model.Property asProperty(com.hp.hpl.jena.rdf.model.Model m)

decode

java.lang.String decode(com.hp.hpl.jena.rdf.model.RDFNode value)

add

void add(com.hp.hpl.jena.rdf.model.Resource targetResource,
         java.lang.Object value)


Copyright © 2006-2007 The SPECTRa Project. All Rights Reserved.