Listing 18 in the reference documentation lists this:
module example is
import skos
@skos:prefLabel = [
"example"@en
"exemple"@fr
"例子"@zh-CH
]
end
Saving the above to file test.sdm and running sdml --no-color convert -f rdf -o test.ttl -i test.sdm results in the following:
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sdml: <http://sdml.io/sdml-owl.ttl#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
example:
rdf:type
owl:Ontology ,
sdml:Module ;
owl:imports <http://www.w3.org/2004/02/skos/core#> ;
skos:prefLabel (
"example"@en
"exemple"@fr
"例子"@zh-CH
) ;
sdml:srcLabel "example" .
Notice how skos:prefLabel is encapsulated as a list, with the english local being preferred.
Compare that with Example 10 in the SKOS reference documentation, where prefLabel is independent entries.
Listing 18 in the reference documentation lists this:
Saving the above to file
test.sdmand runningsdml --no-color convert -f rdf -o test.ttl -i test.sdmresults in the following:Notice how skos:prefLabel is encapsulated as a list, with the english local being preferred.
Compare that with Example 10 in the SKOS reference documentation, where prefLabel is independent entries.