- All Known Implementing Classes:
AssemblerBase,AssemblerGroup,AssemblerGroup.ExpandingAssemblerGroup,ContentAssembler,DefaultModelAssembler,DocumentManagerAssembler,InfModelAssembler,MemoryModelAssembler,ModelAssembler,OntModelAssembler,OntModelSpecAssembler,PrefixMappingAssembler,ReasonerFactoryAssembler,RuleSetAssembler,UnionModelAssembler
public interface Assembler
An Assembler creates objects from their RDF descriptions. The root motivation
is to create Models, but other objects are required as sub-components of
those Models, so a general mechanism is available.
- API Note:
- Methods accepting
Modelas a parameter treat appropriate values ofModelas passing down to sub-assemblers a requirement to share for certain setups that work as tightly coordinated groups. It's a hint, not an instruction.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Assemblerstatic final Assemblerstatic final Assemblerstatic final AssemblerGroupDeprecated, for removal: This API element is subject to removal in a future version.static final Assemblerstatic final Assemblerstatic final AssemblerDeprecated, for removal: This API element is subject to removal in a future version.Use org.apache.hena.ontapistatic final AssemblerDeprecated, for removal: This API element is subject to removal in a future version.Use org.apache.hena.ontapistatic final Assemblerstatic final Assemblerstatic final Assemblerstatic final Assembler -
Method Summary
Modifier and TypeMethodDescriptionstatic AssemblerGroupgeneral()Answeropen( a, root, Mode.DEFAULT ).The core operation: answer a new object constructed according to the object description hanging fromroot, using the assemblerafor any sub-objects.Answeropen( this, root, Mode.DEFAULT ).Answer(Model) open( this, root, Mode.DEFAULT ), unless the result cannot be or is not a Model, in which case throw an exception.Answer(Model) open( this, root, mode ), unless the result cannot be or is not a Model, in which case throw an exception.
-
Field Details
-
defaultModel
-
memoryModel
-
infModel
-
ontModel
Deprecated, for removal: This API element is subject to removal in a future version.Use org.apache.hena.ontapi -
reasonerFactory
-
-
prefixMapping
-
unionModel
-
ontModelSpec
Deprecated, for removal: This API element is subject to removal in a future version.Use org.apache.hena.ontapi -
ruleSet
-
documentManager
-
general
Deprecated, for removal: This API element is subject to removal in a future version.usegeneral()
-
-
Method Details
-
open
The core operation: answer a new object constructed according to the object description hanging fromroot, using the assemblerafor any sub-objects. Usemodeto decide if persistent objects are to be re-used or created; this mode is passed down to all sub-object construction. -
open
Answeropen( a, root, Mode.DEFAULT ). -
open
Answeropen( this, root, Mode.DEFAULT ). -
openModel
Answer(Model) open( this, root, Mode.DEFAULT ), unless the result cannot be or is not a Model, in which case throw an exception. -
openModel
Answer(Model) open( this, root, mode ), unless the result cannot be or is not a Model, in which case throw an exception. -
general
-
general()