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

prefixAlign=left makes invalid turtle #32

Open
VladimirAlexiev opened this issue Sep 17, 2024 · 0 comments
Open

prefixAlign=left makes invalid turtle #32

VladimirAlexiev opened this issue Sep 17, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@VladimirAlexiev
Copy link

owl.bat write --prefixAlign=left--input=rdfxml  ../source/CGMES-NC/r2.3/ap-voc/rdf/SensitivityMatrix-AP-Voc-RDFS2020.rdf CGMES-NC/ttl/SensitivityMatrix-AP-Voc-RDFS2020.ttl

formats the prefixes like this:

@prefix cim    : <https://cim.ucaiug.io/ns#> .
@prefix nc     : <https://cim4.eu/ns/nc#> .

This causes invalid turtle: there can be no spaces before the :

riot --validate CGMES-NC/ttl/SensitivityMatrix-AP-Voc-RDFS2020.ttl
17:56:23 ERROR riot            :: [line: 1, col: 9 ] PREFIX or @prefix requires a prefix (found '[KEYWORD:cim]')

The two styles I've seen in use are:

Left:

@prefix cim:  <https://cim.ucaiug.io/ns#> .
@prefix nc:   <https://cim4.eu/ns/nc#> .
@prefix cims: <http://iec.ch/TC57/1999/rdf-schema-extensions-19990926#> .

Right:

@prefix  cim: <https://cim.ucaiug.io/ns#> .
@prefix   nc: <https://cim4.eu/ns/nc#> .
@prefix cims: <http://iec.ch/TC57/1999/rdf-schema-extensions-19990926#> .
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