Cannot use term schema:encoding
Closed this issue · 2 comments
tpluscode commented
I added the term https://schema.org/encoding
to my mapping vocabulary. XRM does not like that and says
vocabulary schema {
prefix "schema" "http://schema.org/"
properties
encoding
- ^^^^^^^^
- extraneous input 'encoding' expecting RULE_BLOCK_END(org.eclipse.xtext.diagnostics.Diagnostic.Syntax)
}
I tried escaping as "encoding"
but then. I get 3 errors when used
map foo from bar {
properties
schema.encoding from bar
- ^^^^^^^^^^^^^^^
- Couldn't resolve reference to RdfProperty 'schema'.(org.eclipse.xtext.diagnostics.Diagnostic.Linking)
- mismatched input 'encoding' expecting RULE_ID(org.eclipse.xtext.diagnostics.Diagnostic.Syntax)
}
As a workaround I added this weird extra vocab. Any better way?
vocabulary schemaen {
prefix "schemaen" "http://schema.org/en"
properties
coding
}
ktk commented
See special identifiers and escaping, probably used within XRM itself.
tpluscode commented
Of course, that was it. Thanks