how to set lang attribute in prefLabel or altLabel

31 views
Skip to first unread message

Sonali Deo

unread,
Nov 20, 2012, 4:54:37 PM11/20/12
to skos...@googlegroups.com
Hi , 

I am trying to convert a glossary table to a SKOS file. 

The code

SKOSPrefLabelProperty prefLabel = df.getSKOSPrefLabelProperty();
SKOSDataRelationAssertion preflbl1 = df.getSKOSDataRelationAssertion(conceptA, prefLabel, "red");

generated the following in the result file:

<skos:prefLabel xml:lang="">red</skos:prefLabel>

As you can see the xml:lang attribute was generated with an empty value. What should I do to add "en" as a value. Thanks for help.



Simon Jupp

unread,
Nov 21, 2012, 2:15:59 AM11/21/12
to skos-dev
Hi, 
getSKOSDataRelationAssertion should take a fourth String which is the language tag.

e.g.  df.getSKOSDataRelationAssertion(conceptA, prefLabel, "red", "en");

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/-/V3nz-4Uc_lIJ.
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.

Reply all
Reply to author
Forward
0 new messages