gbv / aref Goto Github PK
View Code? Open in Web Editor NEWAnother RDF Encoding Form (aREF)
Home Page: http://gbv.github.io/aREF/
Another RDF Encoding Form (aREF)
Home Page: http://gbv.github.io/aREF/
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.
With http://yamltojson.com/ for dynamic conversion.
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
The RDFa-1.1 specification includes a list of default namespace/prefix mappings that could be reused instead of redefining the list for aREF [1].
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"
}
}
The Talis specification has been migrated to W3C as a Working Group Note (07 November 2013) that could be referenced instead of the Talis link [1]. The W3C are heavily dependent on JSON-LD, so they discourage the use of RDF/JSON but they have committed to it as a Note at least.
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).
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
Only for properties, as used in RDF::YAML, see https://metacpan.org/source/AUTRIJUS/RDF-YAML-0.11/t/sample.yml
Since aREF defines no format, there is no simple MIME type. An explanation and suggestions would still be helpful.
application/rdf+xml
application/ld+json
application/rdf+json
text/turtle
application/n-triples
application/n-quads
application/trig
application/trix
text/x-yaml
or text/yaml
or application/x-yaml
or application/yaml
application/json
text/x-perl
application/ber-stream
for BERSee 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.
application/rdf+yaml
application/rdf+aref+json
application/json+aref
...
separated with |
(or-expression). Order of items should be respected.
Examples could also be put in another document or into an appendix.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.