Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

null or xsd:string ? #66

Open
bblfish opened this Issue Dec 27, 2013 · 1 comment

Comments

Projects
None yet
2 participants

bblfish commented Dec 27, 2013

In QueryFilter there is a question:

       if(builtincall === 'str') {
            if(ops[0].token === 'literal') {
                // lexical form literals
                return {token: 'literal', type:null, value:""+ops[0].value}; // type null? or "http://www.w3.org/2001/XMLSchema#string"
            } else if(ops[0].token === 'uri'){
                // codepoint URIs
                return {token: 'literal', type:null, value:ops[0].value}; // idem
            } else {
                return QueryFilters.ebvFalse();
            }
        }

I'd say from it should be the xsd:string. There is no literal with no type uri anymore.

just yesterday I started reading some of the RDF 1.1 specs from http://www.w3.org/2011/rdf-wg/wiki/Main_Page

http://www.w3.org/TR/2013/WD-rdf11-new-20131217/#literals also mentions

Literals with language tags now have the datatype IRI rdf:langString.

today/tomorrow i plan to add proper handling of language tags in RDF related extensions of LevelGraph so i should have chance to dig bit more into that...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment