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

Consider adding RDF lists to HOWL #14

Open
jamesaoverton opened this issue Sep 6, 2016 · 0 comments
Open

Consider adding RDF lists to HOWL #14

jamesaoverton opened this issue Sep 6, 2016 · 0 comments

Comments

@jamesaoverton
Copy link
Member

jamesaoverton commented Sep 6, 2016

The RDF spec defines rdf:first and rdf:rest predicates for building linked lists. This is the main way that people specify ordered information in RDF. I don't actually see RDF lists much in the wild. Some OWL constructs use them. They aren't yet included in HOWL, but maybe they should be.

(I guess there are other RDF container types.)

In the Turtle spec these are called collections and the syntax uses parentheses:

@prefix : <http://example.org/foo> .
# the object of this triple is the RDF collection blank node
:subject :predicate ( :a :b :c ) .

RDF lists could be one sort of HOWL expression. We could just use the Turtle syntax, but it wouldn't support labels, so think there should be a special HOWL syntax for lists.

The HOWL syntax for lists should be line-based, and allow for different sorts of literals. The list markers could follow Markdown conventions. Here's an idea:

subject
predicate TYPE rdf:List:>>
  1: Foo
  2 LANGUAGE fr: La foo
  3 TYPE integer: 100
  4:> ex:foo
  5:>> some expression
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant