callidon / joseki Goto Github PK
View Code? Open in Web Editor NEWPure Go library for working with RDF, a powerful framework for representing informations as graphs.
License: MIT License
Pure Go library for working with RDF, a powerful framework for representing informations as graphs.
License: MIT License
Does this project enables to convert a rdf turtle (TTL file format) to a Golang struct?
I.e. marshal & unmarshal to/from TTL/struct.
Posting the following query to the http://data.linkedmdb.org/sparql
endpoint returns a 400 error.
select ?label ?n {
{
select ?p (count(?o) as ?n) {
?s ?p ?o .
}
group by ?s
}
bind (replace(str(?s), ".*\\/", "") as ?label)
filter (?n > 1000)
}
order by ?p
A curl request would look like this:
curl http://data.linkedmdb.org/sparql -X POST --data 'query=select+%3Flabel+%3Fn+%7B%0A++%7B%0A++++select+%3Fp+(count(%3Fs)+as+%3Fn)+%7B%0A++++++%3Fs+%3Fp+%3Fo+.%0A++++%7D%0A++++group+by+%3Fp%0A++%7D%0A++bind+(replace(str(%3Fp)%2C+%22.*%5C%5C%2F%22%2C+%22%22)+as+%3Flabel)%0A++filter+(%3Fn+%3E+1000)%0A%7D%0Aorder+by+%3Fp' -H 'Accept: application/sparql-results+json'
Expected outcome:
The endpoint returns a histogram of predicates, filtered to show only predicates that occur more than 1000 times.
Actual outcome:
The endpoint returns a 400 error with the following headers.
> POST /sparql HTTP/1.1
> Host: data.linkedmdb.org
> User-Agent: curl/7.55.1
> Accept: application/sparql-results+json
> Content-Length: 267
> Content-Type: application/x-www-form-urlencoded
>
} [267 bytes data]
* upload completely sent off: 267 out of 267 bytes
100 267 0 0 100 267 0 267 0:00:01 --:--:-- 0:00:01 1265< HTTP/1.1 400 Parse_error__select_label_n_________select_p_counts_as_n________s_p_o___________group_by_p______bind_replacestrp___as_label___filter_n__1000__order_by_p__Encountered_select_at_line_3_column_5_Was_expecting_one_of_____IRIref______PNAME_NS______PNAME_LN______BLANK_NODE_LABEL______VAR1______VAR2______graph______optional______service______filter______true______false______INTEGER______DECIMAL______DOUBLE______INTEGER_POSITIVE______DECIMAL_POSITIVE______DOUBLE_POSITIVE______INTEGER_NEGATIVE______DECIMAL_NEGATIVE______DOUBLE_NEGATIVE______STRING_LITERAL1______STRING_LITERAL2______STRING_LITERAL_LONG1______STRING_LITERAL_LONG2____________NIL________________________ANON______
< Date: Tue, 17 Apr 2018 11:55:02 GMT
< Server: Jetty(6.1.4)
< Pragma: no-cache
< X-Joseki-Server: Joseki-3.0-dev
< Content-Type: text/html; charset=iso-8859-1
< Content-Length: 2387
< Connection: close
To the best of my knowledge, the query is correct.
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.