// get any pref labels
for (SKOSLiteral constant : concept.getSKOSRelatedConstantByProperty(dataset, factory.getSKOSPrefLabelProperty())) {
// need to filter for types or untyped constants
if (constant instanceof SKOSUntypedLiteral) {
SKOSUntypedLiteral untypedConstant = (SKOSUntypedLiteral) constant;
System.out.println("PrefLabel: " + untypedConstant.getLiteral() + " lang: " + untypedConstant.getLang());
}
}
Cheers
Simon
> --
> You received this message because you are subscribed to the Google Groups "skos-dev" group.
> 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.
>
Simon Jupp
simon...@manchester.ac.uk
http://www.cs.man.ac.uk/~sjupp/