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

plainLiteral get "Empty lang tag" #73

Open
comedinha opened this issue Feb 26, 2019 · 0 comments
Open

plainLiteral get "Empty lang tag" #73

comedinha opened this issue Feb 26, 2019 · 0 comments

Comments

@comedinha
Copy link

SmartDataAnalytics/jena-sparql-api@0643106#diff-b5e914297109c27ea74cc323383d632c

this change affect function plainLiteral and if you not put lang the sparqlify-csv not work.

https://github.com/SmartDataAnalytics/Sparqlify/blob/master/sparqlify-examples/src/main/resources/sparqlify-examples/csv/example1.sml
image

To work need:

Prefix ex: <http://example.org/>
Prefix xsd: <http://www.w3.org/2001/XMLSchema#>
Create View Template test As
  Construct {
    ?s
      ex:name ?n ;
      ex:age ?a ;
      ex:gender ?g ;
      ex:email ?e ;
      ex:isPositive "true"^^xsd:boolean .
  }
  With
    ?s = uri(ex:, ?name)
    ?n = plainLiteral(?name, "en")
    ?a = plainLiteral(?age, "en")
    ?g = plainLiteral(?gender, "en")
    ?e = plainLiteral(?email, "en")

/*
Prefix ex: <http://example.org/>
Create View Template test As
  Construct {
    ?s ex:label ?o
  }
  With
    ?s = uri(ex:, ?1)
    ?o = plainLiteral(?2, "en")
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant