[OTDev] Java Examples for Dataset Creation
Nina Jeliazkova nina at acad.bgTue Dec 8 12:45:42 CET 2009
- Previous message: [OTDev] Java Examples for Dataset Creation
- Next message: [OTDev] Java Examples for Dataset Creation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 >
- Previous message: [OTDev] Java Examples for Dataset Creation
- Next message: [OTDev] Java Examples for Dataset Creation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Development mailing list