Hi,
Sorry, the online example is out of date. You missed a few things:
SKOSManager manager = new SKOSManager();
SKOSDataset dataSet = manager.loadDatasetFromPhysicalURI(URI.create(path));
SKOStoOWLConverter converter = new SKOStoOWLConverter();
OWLReasoner reasoner=new
Reasoner.ReasonerFactory().createReasoner(converter.getAsOWLOntology(dataSet));
SKOSReasoner skosreasoner = new SKOSReasoner(manager, reasoner);
It is a good idea to have the SKOS-DL also loaded into your
SKOSManager so you get all the SKOS inferences.
Cheers
Simon
> --
> You received this message because you are subscribed to the Google Groups
> "skos-dev" group.
> To view this discussion on the web visit
>
https://groups.google.com/d/msg/skos-dev/-/d0WXspHAR1EJ.
> To post to this group, send email to
skos...@googlegroups.com.
> To unsubscribe from this group, send email to
>
skos-dev+u...@googlegroups.com.
> For more options, visit this group at
>
http://groups.google.com/group/skos-dev?hl=en.