Elda 2.0.0

47 views
Skip to first unread message

chris dollin

unread,
Sep 19, 2018, 9:56:13 AM9/19/18
to linked-data-api-discuss
Dear All

We have released Elda 2.0.0.

New features:

Elda supports the standard HTTP headers X_Forwarded-Proto and
X-Forwarded-Host. When these headers are supplied by a request, if you have
not specified a base URI for your API (represented by the api:base property
in Elda configuration), the values of these headers will be used as the
scheme and host for any boiler-plate URIs which are returned in the
response. For example, this can affect the =E2=80=9Cnext page=E2=80=9D and =
=E2=80=9Cprevious page=E2=80=9D
links, but does not affect the URIs of any RDF resources that were returned
by the request. For HTML responses, this also affects the URIs which are
used to locate static resources.

If you are using a proxy server or load balancer then you should make sure
that it sets these headers to the appropriate value before forwarding a
request to Elda.

This feature is enabled by default but it can be disabled for each API
individually by setting the elda:enableForwardHeaders property for that API
to false.

Config file inclusion

From Elda 1.5.0, config files can include other config file fragments using
the #include directive:

\#include name-of-file

The content of the `#included file is included at this point, replacing the
#include directive.

It is an error for nested #includes to #include the same file again. It is
not an error for the same file to be #included in multiple places.
Inclusions are not cached.
Setting Variables from queries

From Elda 2.0.0, it is possible for a configuration to specify the value of
a variable to be set from a SPARQL query on the configuration=E2=80=99s SPA=
RQL
endpoint. See:
http://epimorphics.github.io/elda/current/reference.html#setting-variables-=
from-queries
Editing metadata

From Elda 2.0.0, additional control over generated metadata may be
configured, allowing wired-in metadata to be suppressed and arbitrary
limited metadata to be added. See:

http://epimorphics.github.io/elda/current/reference.html#editing-metadata

Chris
--
Chris "allusive" Dollin

Rob Atkinson

unread,
Jan 4, 2019, 1:55:09 AM1/4/19
to linked-data-api-discuss

Hi - 

i downloaded elda-common - and it seems to have not built correctly (or docs are out of date..)


there is no index.html anymore 

...\elda-common\WEB-INF>ls

classes  lib  urlrewrite.xml  web.xml"

lib is empty

and web.xml doesnt specify the default spec location:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC 
'-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN'
<web-app>        

  <servlet-mapping>
    <servlet-name>default</servlet-name>
    <url-pattern>/</url-pattern>
  </servlet-mapping>
  
  <welcome-file-list>
    <welcome-file>index.html</welcome-file>
  </welcome-file-list>
</web-app>

I havent downloaded and tried to run the src build as my linux vm network got borked by docker and MS fighting over NATs - so trying to just run under Windows.

(i have created a directory \etc\elda\conf.d\  optmistically hoping this is where it will look foe configurations... )

Simon Oakes

unread,
Jan 4, 2019, 2:21:42 PM1/4/19
to linked-data-api-discuss
Hi Rob,
Please could you clarify the steps to replicate this problem, in particular where you downloaded `elda-common` from. I have looked into http://repository.epimorphics.com/com/epimorphics/lda/elda-common/2.0.0/ and everything seems to be in order.

Thanks,
Simon

Rob Atkinson

unread,
Jan 5, 2019, 1:55:26 AM1/5/19
to linked-data...@googlegroups.com
thats where i downloaded from - here's whats in the archive..

image.png



--
You received this message because you are subscribed to the Google Groups "linked-data-api-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linked-data-api-d...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dave Reynolds

unread,
Jan 5, 2019, 9:46:52 AM1/5/19
to linked-data...@googlegroups.com

Hi Rob,

Your listing just shows the WEB-INF subdirectory but that subdirectory looks right.

The index.html is at the top level of the archive as normal and the lib directory isn't empty, at least not for us. Classes is empty. Several of us have tried a download and unpack on both Windows as well as Linux and haven't yet spotted a problem.

The listing from the top level looks like:

ls -lR
.:
total 24
drwxrwxr-x 3 der der 4096 Sep 19 14:22 _error_pages
-rw-rw-r-- 1 der der 1424 Sep 19  2017 index.html
-rw-rw-r-- 1 der der 1294 Sep 19 12:01 log4j.properties
drwxr-xr-x 3 der der 4096 Sep 19 14:22 META-INF
-rw-rw-r-- 1 der der  399 Sep 19  2017 velocity.properties
drwxrwxr-x 4 der der 4096 Sep 19 14:22 WEB-INF

./_error_pages:
total 8
-rw-rw-r-- 1 der der  174 Sep 19 14:19 404.html
drwxrwxr-x 2 der der 4096 Sep 19 14:22 velocity

./_error_pages/velocity:
total 40
-rw-rw-r-- 1 der der 198 Sep 19 14:19 bad_request.vm
-rw-rw-r-- 1 der der 245 Sep 19 14:19 _error.vm
-rw-rw-r-- 1 der der 199 Sep 19 14:19 exception.vm
-rw-rw-r-- 1 der der 199 Sep 19 14:19 general_exception.vm
-rw-rw-r-- 1 der der 292 Sep 19 14:19 head.vm
-rw-rw-r-- 1 der der 196 Sep 19 14:19 query_parse_exception.vm
-rw-rw-r-- 1 der der 189 Sep 19 14:19 stack_overflow.vm
-rw-rw-r-- 1 der der  33 Sep 19 14:19 style.css
-rw-rw-r-- 1 der der 201 Sep 19 14:19 unknown_shortname.vm
-rw-rw-r-- 1 der der 211 Sep 19 14:19 velocity_rendering.vm

./META-INF:
total 8
-rw-r--r-- 1 der der  130 Sep 19 14:22 MANIFEST.MF
drwxrwxrwx 3 der der 4096 Sep 19 14:22 maven

./META-INF/maven:
total 4
drwxrwxrwx 3 der der 4096 Sep 19 14:22 com.epimorphics.lda

./META-INF/maven/com.epimorphics.lda:
total 4
drwxrwxrwx 2 der der 4096 Sep 19 14:22 elda-common

./META-INF/maven/com.epimorphics.lda/elda-common:
total 8
-rw-rw-r-- 1 der der  115 Sep 19 14:22 pom.properties
-rw-rw-r-- 1 der der 2001 Sep 19 14:19 pom.xml

./WEB-INF:
total 16
drwxrwxr-x 2 der der 4096 Sep 19 14:22 classes
drwxrwxr-x 2 der der 4096 Sep 19 14:22 lib
-rw-rw-r-- 1 der der  857 Sep 19  2017 urlrewrite.xml
-rw-rw-r-- 1 der der 3015 Sep 19 14:19 web.xml

./WEB-INF/classes:
total 0

./WEB-INF/lib:
total 28576
-rw-rw-r-- 1 der der    62983 Sep  6  2017 activation-1.1.jar
-rw-rw-r-- 1 der der   324238 Sep 19  2017 cglib-nodep-2.1_3.jar
-rw-rw-r-- 1 der der   232771 Sep  6  2017 commons-codec-1.6.jar
-rw-rw-r-- 1 der der   575389 Sep  6  2017 commons-collections-3.2.1.jar
-rw-rw-r-- 1 der der   261809 Sep  6  2017 commons-lang-2.4.jar
-rw-rw-r-- 1 der der    60686 Sep  6  2017 commons-logging-1.1.1.jar
-rw-rw-r-- 1 der der   608149 Sep 19 14:22 elda-lda-2.0.0.jar
...

Dave

Rob Atkinson

unread,
Jan 6, 2019, 3:45:14 PM1/6/19
to linked-data...@googlegroups.com
So i need to find out why its not picking up index.html

But its still missing the spec stuff in web.xml or doc is out of date..



Rob Atkinson

unread,
Jan 7, 2019, 1:22:37 AM1/7/19
to linked-data-api-discuss

Played with this some more and compared to earlier versions...

under 2.0 I'm not finding any evidence in tomcat logs (or any other log file i can find)  about the specifications being loaded - or even whether or where it is trying to load them

for example 1.43 standalone logged this by default to tomcat-stderr.log

   =>=> Starting Elda (Init) 1.4.3

2018-12-22 18:15:19,651   INFO - creating router for 'standalone'
2018-12-22 18:15:19,663   INFO - reload check interval for 'standalone' is '5000'
2018-12-22 18:15:19,693   INFO - adding locator for 'C:\Program Files\Apache Software Foundation\Tomcat 8.5\webapps\standalone\/'
2018-12-22 18:15:19,694   INFO - loading spec file from 'C:\Program Files\Apache Software Foundation\Tomcat 8.5\webapps\standalone\specs\full-education.ttl' with prefix path '/full'

environment is Tomcat8 running under default install on Windows 10 ..

The docs say it will look in /etc/elda/conf.d/{APP}/*.ttl

the index,html page says

"/etc/elda/configs/{APP}_*ttl."

I'm also trying to see where custom assets should be created - presuming elda-assets should not be touched as it holds all the defaults and will need to be reinstalled with updates to versions of elda-common ? 
To unsubscribe from this group and stop receiving emails from it, send an email to linked-data-api-discuss+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "linked-data-api-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linked-data-api-discuss+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "linked-data-api-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linked-data-api-discuss+unsub...@googlegroups.com.

Guoqian Jiang

unread,
Oct 25, 2019, 10:53:02 AM10/25/19
to linked-data...@googlegroups.com
Hi, Chris,

I tried to use the latest version of Elda 2.0.1 and the html interface shows up for /standalone/again/games. When I click the menu items under data format, it did not show anything and rather than just a blank page. Am I missing something?


thanks,

-Guoqian


--
You received this message because you are subscribed to the Google Groups "linked-data-api-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linked-data-api-d...@googlegroups.com.

Guoqian Jiang

unread,
Oct 27, 2019, 4:55:10 PM10/27/19
to linked-data-api-discuss
It turns out that the html interface did not have /standalone in its link to different data formats. thanks, -Guoqian


On Friday, October 25, 2019 at 9:53:02 AM UTC-5, Guoqian Jiang wrote:
Hi, Chris,

I tried to use the latest version of Elda 2.0.1 and the html interface shows up for /standalone/again/games. When I click the menu items under data format, it did not show anything and rather than just a blank page. Am I missing something?


thanks,

-Guoqian


To unsubscribe from this group and stop receiving emails from it, send an email to linked-data-api-discuss+unsub...@googlegroups.com.

Stuart Williams

unread,
Oct 29, 2019, 12:27:59 PM10/29/19
to Guoqian Jiang, Linked Data API Discuss
Hello Guoqian,

Thanks for your reports, I've taken a preliminary look at the issue and found the root cause of the problem, which appears to be a bug in the way that elda computes the requested page URI embedded in responses and from which all the format, page and filter URI are constructed when api:base has not been set in the api configuration.

I've raised an issue at:

BR

Stuart
--
To unsubscribe from this group and stop receiving emails from it, send an email to linked-data-api-d...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/linked-data-api-discuss/3e12012c-edc8-4aa7-ae53-366a8bed8873%40googlegroups.com.


-- 
Epimorphics Ltd                        www.epimorphics.com 
Court Lodge, 105 High Street, Portishead, Bristol BS20 6PT
Tel: 01275 399069

Epimorphics Ltd. is a limited company registered in England (number 7016688)
Registered address: Court Lodge, 105 High Street, Portishead, Bristol BS20 6PT, UK
Reply all
Reply to author
Forward
0 new messages