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

Syntax for datatypes. #106

Open
timothee-haudebourg opened this issue Jan 19, 2023 · 0 comments
Open

Syntax for datatypes. #106

timothee-haudebourg opened this issue Jan 19, 2023 · 0 comments

Comments

@timothee-haudebourg
Copy link
Collaborator

There is currently no way of defining datatypes within TreeLDR. The only datatypes are the one built in the compiler (for now, just xsd:string). This is so fundamental we need to add a syntactic construct for them.

Since there is already the type keyword, I propose to add datatype keyword. This keyword would behave just like type, but creating an instance of rdfs:Datatype instead of rdfs:Class. Then the with keyword can still be used to define its associated layout.

datatype xsd:integer with tldr:Integer;
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

1 participant