Git Product home page Git Product logo

aref's People

Contributors

cklee avatar nichtich avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

cklee

aref's Issues

detection of plain IRIs vs string

IRIs as predicates and subjects should be more lax than object IRIs. The definition

"IRI that does not match any of the grammar rules languageTaggedString or datatypedString"

is wrong anyway, because string "@" should also be excluded.

position and scope of namespace map

@nichtich ,

from the spec I cannot falsify if this is possible:

---
http://example.com/people#alice:
    _ns:
        foaf: http://xmlns.com/foaf/0.1/
    a: foaf_Person

instead of:

---
_ns:
    foaf: http://xmlns.com/foaf/0.1/
http://example.com/people#alice:
    a: foaf_Person

If the first example is possible. What is the scope of the namespace map? In scope of the graph or in scope of the whole document?

---
http://example.com/people#alice:
    _ns:
        foaf: http://xmlns.com/foaf/0.1/
    a: foaf_Person
http://example.com/people#bob:
    a: foaf_Person

circular aREF documents

Circular aREF documents cannot be serialized in JSON [...]

Why is it? Isn't this a circular (self referencing) document:

{
    "http://example.com/people#alice": {
        "foaf_knows": "http://example.com/people#alice"
    }
}

@nichtich

Provide decoding algorithm

A decoding algorithm from aREF to triples (in pseudo-code) should help implementors and show the simplicity of aREF (e.g. compared to JSON-LD).

Support easy access to sequences and lists in aREF query

Sequences and bags

  • bibo_authorList.rdf__1.foaf_name
  • bibo_authorList.rdf__2.foaf_name
  • bibo_authorList.rdf__3.foaf_name
  • ...

Lists

  • bibo_authorList.rdf_first.foaf_name
  • bibo_authorList.rdf_rest.rdf_first.foaf_name
  • ...

Could be solved by special keywords:

  • bibo_authorList._member.foaf_name # rdfs_member, rdf__n, rdfs_first...
  • bibo_authorList._all.foaf_name
  • bibo_authorList._.foaf_name
  • bibo_authorList._seq.foaf_name
  • bibo_authorList._bag.foaf_name
  • bibo_authorList._list.foaf_name

Mention MIME type

Since aREF defines no format, there is no simple MIME type. An explanation and suggestions would still be helpful.

  • RDF/XML is application/rdf+xml
  • JSON-LD is application/ld+json
  • RDF/JSON is application/rdf+json
  • Turtle is text/turtle
  • N-Triples is application/n-triples
  • N-Quads is application/n-quads
  • TriG is application/trig
  • TriX is application/trix
  • YAML is text/x-yaml or text/yaml or application/x-yaml or application/yaml
  • JSON is application/json
  • Perl code is text/x-perl
  • ASN.1 encodings e.g. application/ber-stream for BER
  • INI file has no MIME type
  • ...

Suggestions

See also http://trac.tools.ietf.org/html/draft-ietf-appsawg-media-type-regs-14#section-6 for official MIME suffixes. yaml is not registered yet.

  • aREF in YAML:
    • application/rdf+yaml
  • aREF in JSON:
    • application/rdf+aref+json
    • application/json+aref

...

More examples

Examples could also be put in another document or into an appendix.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.