Skip to content

example uses wrong syntax for skos prefLabel #10

@jonassmedegaard

Description

@jonassmedegaard

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions