webserver - exposing a sparql endPoint publicly? -


i have website power tomcat server. application tap on triplestore make public trough sparql endpoint @ www.mywebsiteaddress/sparql.

what configuration need on webserver ?

i use jena fuseki on background running on port 3030 , webserver on port 80.

my idea that, when webserver request on port 80 ..../sparql redirect fuseki sprql endpoint

this more of webservice / access control problem sparql related. however, since sparql endpoints supposed created per sparql spec, think valid question, i'm sure people encounter again in future.

so, answer question, "public" means headers set in order allow request hit endpoint when not coming same domain. there, can allow types of interactions endpoint. if wanted kinda allow everything, set following headers:

'access-control-allow-origin: *' "access-control-allow-credentials: true" 'access-control-allow-headers: x-requested-with' 'access-control-allow-headers: content-type' 'access-control-allow-methods: post, get, options, delete //http://stackoverflow.com/a/7605119/578667 'access-control-max-age: 86400' 

depending on how built endpoint, it'll either have settings somewhere can adjust headers, or, you'll have find headers settings application framework if you're using one. but, in general, above headers make "public"


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -