Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

example uses wrong syntax for skos prefLabel #10

Open
jonassmedegaard opened this issue Jun 26, 2024 · 1 comment
Open

example uses wrong syntax for skos prefLabel #10

jonassmedegaard opened this issue Jun 26, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@jonassmedegaard
Copy link

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.

@jonassmedegaard jonassmedegaard added the bug Something isn't working label Jun 26, 2024
@jonassmedegaard jonassmedegaard changed the title esample uses wrong syntax for skos prefLabel example uses wrong syntax for skos prefLabel Jun 28, 2024
@johnstonskj
Copy link
Member

I'll take a look this week

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants