-
Notifications
You must be signed in to change notification settings - Fork 2
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
Drop http://www.w3.org/1999/02/22-rdf-syntax-ns#namedNode ? #1
Comments
Yeah, this basically is a published version of an experimental internal model, I found it disappointing that I couldn't find them on LOV. We want to have some kind of IRI though (which should indeed resolve), since that enables the parser to be able to simply switch on datatype unconditionally. AFAIK (most) JS engines use interned strings, so the compare should come down to a simple reference compare. |
Well, an identical series of characters parsed n times will still occupy n times the space. Interning doesn’t reconcile those. So if it must be a URI (and I don’t see why that would provide an advantage, certainly not memory- or speed-wise), perhaps make it a short URN. You can still switch unconditionally, just much faster. |
I agree that the current URL should be dropped, as it does not resolve. In most RDF serialization formats, the default datatype for literals is String. If HexTuples would us the NamedNode (or the URI) as the default datatype, it should always serialize strings with If it really needs an IRI, I suggest linking to a NamedNode concept in this very spec - it would be a sensible place to resolve to. Or maybe the URI spec? |
|
No, that’s a URI, not the node named by that URI. |
Perhaps I'm misunderstading, but
No that'd be the So together
Though rereading that part of a spec more closely, they allow them to be relative, which might pose a problem |
There's a difference between
Both exist and they are not the same. Even So I relaunch my suggestion of |
Hmm, seems bizarre to me. I intuitively figured that, since 'everything is a resource', literals are just a convenient way to point to certain resources which lack a uri space / are too complex for the uri spec. Thinking of the datatype iri as the 'scheme' and the value as the 'path'. I'll go and rethink some things ;) |
Here's a quick performance test: https://gist.github.com/RubenVerborgh/1b70a456230027468a715b54afb59242 On my machine:
|
*Or vice-versa, that uri's are used to determine points in irregular defined spaces |
See
The syntax in fact hints at this interpretation, with Full answer in https://www.w3.org/TR/rdf11-mt/ |
Closed in https://github.com/ontola/hextuples-parser/releases/tag/v2.0.0 Has been replaced with |
The URI does not resolve, and it's a long string comparison to be performed. Suggestion: just leave empty.
And for blank, use a single char like
_
or so.The text was updated successfully, but these errors were encountered: