Previous topic  Top  Next topic  Print this Topic
 

Factory Overview

 

RDF terms like resources and literals are created using the KAON2Factory factory provided by KAON2Manager.factory(). The table below shows all of the relevant methods for OntoBroker RDF.

Category

Element

Factory method

Resource

URI/IRI resource

constantIRI

Blank node

constantBNode

Literal

untyped

constantSimpleLiteral

language tagged

constantPlainLiteral

boolean

constantBoolean

date/time

constantDate

constantTime

constantDateTime

duration

constantDuration

double/float

constantDouble

other numeric

constantDecimal

constantInteger

string

constantString

XML literal

constantXMLLiteral

other

typeCode=TypeRegistry.getTypeCode(typeURI)

constant(value, typeCode)

For more details, see the JavaDoc delivered with OntoBroker RDF. Particularly the class com.ontoprise.files.rdf.shared.RDFUtils provides further useful RDF related methods.