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

URI() function doesn't convert blank nodes #81

Open
agazzarini opened this issue May 20, 2015 · 1 comment
Open

URI() function doesn't convert blank nodes #81

agazzarini opened this issue May 20, 2015 · 1 comment
Assignees
Labels

Comments

@agazzarini
Copy link
Member

sample_data.ttl

@prefix dm:   <http://learningsparql.com/ns/demo#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix d:    <http://learningsparql.com/ns/data#> .
@prefix xsd:  <http://www.w3.org/2001/XMLSchema#> .

d:id1 dm:location _:b1 .
d:id2 dm:location <http://dbpedia.org/resource/Montréal> .
d:id3 dm:amount 3 . 
d:id4 dm:amount "4"^^xsd:integer . 
d:id5 dm:amount 1.0e5 . 
d:id6 rdfs:label "5 bucks" . 
d:id7 dm:shipped true  . 

CONSTRUCT query

BASE <http://learningsparql.com/ns/demo#>

CONSTRUCT {?s ?p ?testURI.}
WHERE 
{
  ?s ?p ?o . 
  BIND (URI(?o) AS ?testURI)
}

SOLRDF

<http://learningsparql.com/ns/data#id1> <http://learningsparql.com/ns/demo#location> _:B6efa5836X3A14d70878f21X3AX2D7ff9 .
<http://learningsparql.com/ns/data#id6> <http://www.w3.org/2000/01/rdf-schema#label> <http://learningsparql.com/ns/5 bucks> .
<http://learningsparql.com/ns/data#id2> <http://learningsparql.com/ns/demo#location> <http://dbpedia.org/resource/Montréal> .

JENA MEM MODEL

<http://learningsparql.com/ns/data#id1> <http://learningsparql.com/ns/demo#location> <_:871810c45c183668b016fa55d5c7a00f> .
<http://learningsparql.com/ns/data#id6> <http://www.w3.org/2000/01/rdf-schema#label> <http://learningsparql.com/ns/5 bucks> .
<http://learningsparql.com/ns/data#id2> <http://learningsparql.com/ns/demo#location> <http://dbpedia.org/resource/Montréal> .
@agazzarini agazzarini added the bug label May 20, 2015
@agazzarini agazzarini self-assigned this May 20, 2015
@agazzarini
Copy link
Member Author

The same query with URI(ENCODE_FOR_URI(?o)) is working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant