[OTDev] Java Examples for Dataset Creation

Nina Jeliazkova nina at acad.bg
Tue Dec 8 12:45:42 CET 2009


Hi Pantelis,

In principle yes (the Class of the resource should be defined and this
is done via RDFType), but there is already in the example

	OT.OTClass.Dataset.createOntClass(jenaModel);

which does the same , if jenaModel is OntModel.

Regards,
Nina
chung wrote:
> Hi Nina, 
>  I think we have to include the following line in the code for the
> creation of an RDF representation for datasets:
>
> dataset.addRDFType(OT.OTClass.Dataset.createProperty(datasetModel));
>
> This declares that the Resource under consideration is a Dataset.
>
> P.S. Thanks for the snippets!
>
> Best regards,
> Pantelis
>   




More information about the Development mailing list