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

RelFinder integration "output=xml" #52

Open
rhaubt opened this issue Sep 14, 2017 · 1 comment
Open

RelFinder integration "output=xml" #52

rhaubt opened this issue Sep 14, 2017 · 1 comment

Comments

@rhaubt
Copy link

rhaubt commented Sep 14, 2017

Hi,

I'm using the Semantic MediaWiki extension and RDFIO and would like to integrate RelFinder http://www.visualdataweb.org/relfinder.php

  • MediaWiki 1.26.2
  • Semantic MediaWiki | 2.4.6
  • RDFIO | v2.0.9

The problem that I am having is that RelFinder and the SPARQL-Server use different parameter descriptions for the returned formats. RelFinder is sending "format=XML", which the server does not understand and only returns the HTML page. The server needs "output=xml" (case-sensitive) instead.

Is it possible to configure this somewhere?

Thank you for your support :)

@samuell
Copy link
Member

samuell commented Sep 18, 2017

Hi @rhaubt, Thanks for reporting! (Also, relfinder looks interesting :) )

The parameter flag is not configurable right now, but would need code changes.

Shouldn't be too hard actually ... the format is checked in:

... based on the $options->outputType object, where the $options object is populated in:

https://github.com/rdfio/RDFIO/blob/master/specials/SpecialSPARQLEndpoint.php#L162

... so it should be possible to do some logic there, and read $request->getText( 'format' ); ... and if it is "XML", it would turn it into 'xml', etc, as you were on to.

We could probably allow the logic to take care of a few such special cases, as long as they don't clash with anything else, so feel free to send a PR if you manage to get this to work with relfinder!

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

2 participants