how to add lang to labels (even this question has been asked...but)

17 views
Skip to first unread message

Yuan Lin

unread,
Feb 24, 2014, 11:59:02 AM2/24/14
to skos...@googlegroups.com
Hello,

I saw that, this question has been asked and answered in the forum, but with the given solution from the other subject, it doesn't work at my pc ....

I got several questions at the same time:

1. I got two versions of jar file for SKOS API, one is "skos-api-onejar.jar", another is "skosapi.jar", finally, which one should i use? what's the difference?

2. With both jar files, the language attribut is not showing in any label elements. even with the official example
http://sourceforge.net/p/skosapi/code/HEAD/tree/version_3/src/examples/CreateSKOSExample.java?format=raw

Could someone show me a full functional example code please.

3. seems that all new created entities/relations have to be added into skos file by using
manager.applyChanges(newAssertion1);
manager.applyChanges(newAssertion2);
etc..

Is there a simpler way to add and commit these modifications?

Thank you very much for help.

yuan

Simon Jupp

unread,
Feb 27, 2014, 6:47:01 AM2/27/14
to skos-dev
Hi Yuan, 

I'd first recommend that you get the latest SKOS API from the new location on github. 


You can build the jars using maven. 

I noticed some methods form the OWL API had been deprecated and had stopped language tags being set. This has been fixed and changes committed to github so you will need to build form source to get these changes. 

Example3.java shows how you can add a whole collection of assertions.

Cheers
Simon





--
You received this message because you are subscribed to the Google Groups "skos-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skos-dev+u...@googlegroups.com.
To post to this group, send email to skos...@googlegroups.com.
Visit this group at http://groups.google.com/group/skos-dev.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages