This is the Assembler quickstart page. For more detailed information, see the Assembler howto document.
An Assembler specification is an RDF description of how to
construct a model and its associated resources, such as reasoners,
prefix mappings, and initial content. The Assembler vocabulary is
given in the Assembler schema, and we'll
use the prefix ja
for its identifiers.
An Assembler is an object that implements the Assembler
interface and can construct objects (typically models) from Assembler
specifications. The constant Assembler.general
is an
Assembler that knows how to construct the usual suspects.
Suppose the Model M
contains an Assembler
specification whose root
-- the Resource describing the whole Model to construct
is R
(so R.getModel() == M)
. Invoke:
Assembler.general.createModel(R)
The result is the desired Model. Further details about the
Assembler
interface, the special Assembler
general
, and the details of specific Assemblers,
are deferred to the Assembler howto.
In the remaining sections, the object we want to describe is
given the root resource my:root
, and our examples
are written in N3.
my:root a ja:MemoryModel.
my:root ja:reasoner [ja:reasonerURL theReasonerURL] ; ja:baseModel theBaseModelResource .
my:root ja:connection aConnectionresource . aConnectionResource ja:dbURL theDatabaseURL ; ja:dbUser "the user name" ; ja:dbPassword "the user's password" ; ja:dbType "the database type, eg MySQL" .
my:root ... ja:content [ja:externalContent <someContentURL>] .