ucoProject / UCO

This repository is for development of the Unified Cyber Ontology.
Apache License 2.0
78 stars 34 forks source link

Syntax error in editor_annotation.ttl #176

Closed ajnelson-nist closed 4 years ago

ajnelson-nist commented 4 years ago

Python's rdflib is failing to open the file /uco-core/editor_annotation.ttl in today's develop head (46d0422). The error is as follows (Line 25):

rdflib.plugins.parsers.notation3.BadSyntax: at line 25 of <>:
Bad syntax (expected '.' or '}' or ']' at end of statement) at ^ in:
"...b'erate\n  rdf:type owl:AnnotationProperty ;\n  rdfs:comment """'^b'Specifies an annotation property that can be defined on data'..."

The Git history shows this file was last modified in November, and merged on Feb 26 in c92512e26. Was this file intended to be merged into develop? I don't recall any discussion of this file's purpose, but I wasn't participating in that hefty edit branch. It also appears to not have been run through rdf-toolkit, which identified the actual syntax error on line 11 (forgotten closing triple quotes and semicolon).

I'll file a PR to fix the syntax error, but could somebody explain what the purpose of this file is?

ajnelson-nist commented 4 years ago

I applied the "v0.4.0" label because a syntax error should not ship.

ajnelson-nist commented 4 years ago

Thank you for merging this, @rhohimer !

ajnelson-nist commented 4 years ago

The question for the file's purpose is now in Issue 178.