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

OWL language tags not escaped #125

Open
sneakers-the-rat opened this issue Jan 13, 2024 · 0 comments
Open

OWL language tags not escaped #125

sneakers-the-rat opened this issue Jan 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@sneakers-the-rat
Copy link

Describe the bug

OWL (and I think a lot of linked data formats?) functional notation language allows a languageTag following a string, but they are not escaped when translating from OWL

Source owl (turtle)

as:Activity a owl:Class ;
  rdfs:label "Activity"@en ;
  rdfs:subClassOf as:Object ;
  rdfs:comment "An Object representing some form of Action that has been taken"@en .

OWL converted to functional syntax with robot per the docs:

# Class: as:Activity (Activity)

AnnotationAssertion(rdfs:comment as:Activity "An Object representing some form of Action that has been taken"@en)
AnnotationAssertion(rdfs:label as:Activity "Activity"@en)
SubClassOf(as:Activity as:Object)

Linkml:

classes:
  Activity:
    comments:
    - An Object representing some form of Action that has been taken@en
    is_a: Object

To Reproduce

  • schema_automator: v0.3.0
schemauto import-owl activitystreams2.ofn -o ./activitystreams.yaml

Expected behavior

Not include the language tag! I'm not sure how linkML handles language information, ideally it would be preserved, but in any case not concatenated with the string :)

@sneakers-the-rat sneakers-the-rat added the bug Something isn't working label Jan 13, 2024
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

1 participant