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

Keywords cannot be used within a vocabulary definition #53

Closed
ktk opened this issue Dec 6, 2019 · 3 comments
Closed

Keywords cannot be used within a vocabulary definition #53

ktk opened this issue Dec 6, 2019 · 3 comments
Assignees

Comments

@ktk
Copy link
Member

ktk commented Dec 6, 2019

I've imported the whole schema.org namespace as vocabulary {} and I got some erros as I had a bunch of properties that are used as keywords so it stumbles over the use of them in a schema.

  • encoding
  • map
  • query
@nnamtug
Copy link
Collaborator

nnamtug commented Dec 6, 2019 via email

@mchlrch
Copy link
Member

mchlrch commented Dec 7, 2019

Odd, declaring a ^map property works, but referencing it does not work

map EmployeeMapping from EMPLOYEE {
	subject template "http://airport.example.com/{0}" with id;

	properties
		employee:no from ^map
		employee:map from ^map
		employee:^map from ^map
}

logical-source EMPLOYEE {
	type xml
	source "EMP"

	referenceables
		id
		EMPNO
		^map	
}

vocabulary employee {
	prefix "employee:" "http://example.com/employee"

	properties
		no
		^map
}

@nnamtug nnamtug self-assigned this Dec 13, 2019
@nnamtug
Copy link
Collaborator

nnamtug commented Dec 13, 2019

this was a bug introduced by #12 (partially replace qname delimiter in grammar)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants