buda-base / lds-pdi

http://purl.bdrc.io BDRC Linked Data Server
Apache License 2.0
2 stars 0 forks source link

local fuseki by default #110

Closed eroux closed 5 years ago

eroux commented 5 years ago

by default, lds-pdi should use the local fuseki, not the buda1 one. Such configuration appear on

(possibliy among other places)

There should be a mechanism to allow developers to use the buda1 fuseki though, this mechanism should be documented in the readme

MarcAgate commented 5 years ago

webdefault.xml is required by jetty and therefore used only in dev environment. It also includes a queryPath property (the path to local lds-queries files). In prod environment (that uses tomcat), these two props values are currently set in /tomcat/conf/context.xml.
I managed (in commit 6c30a7d) to get rid of fusekiUrl settings in lds-pdi.properties file. Therefore dev (and deploy) settings only depends upon local context.xml and webDefault.xml files (i.e they don't rely on properties found on github repo) This is what we have in context.xml on ec2 (that applies to any instance):

<Parameter name="fuseki" value="http://localhost:13180/fuseki/bdrcrw/query"
        override="false"/>
    <Parameter name="queryPath" value="/usr/local/ldspdi/queries/"
            override="false"/>
    <Parameter name="propertyPath" value="/usr/local/ldspdi/"
            override="false"/>