SemanticMediaWiki/SemanticMediaWiki — pull request #337 by mwjames (2014-06-18 20:57:12+00:00)
Title: Enable Jena Fuseki SPARQL for Travis

Runs Jena Fuseki SPARQL 1.0.2 as service.

It will currently return an error because `JSON` is expected as default ("&output=xml" to $parameterString in the doQuery function expects) [0].

```
1) SMW\Tests\Integration\QuerySourceIntegrationTest::testQueryRoutingWithDefaultSource
SMWSparqlDatabaseError: A SPARQL query error has occurred
Query: PREFIX wiki:
PREFIX rdf:
PREFIX rdfs:
PREFIX owl:
PREFIX swivt:
PREFIX property:
PREFIX xsd:
SELECT DISTINCT ?result WHERE {
?result swivt:page ?url .

}
OFFSET
LIMIT 1
Error: Malformed query
Endpoint: http://localhost:3030/db/query
HTTP response code: 400
```

But Travis sucessfully runs the service with SPARQL queries like:
```
20:45:20 INFO [8261] exec/select
20:45:20 INFO [8261] 200 OK (1 ms)
20:45:20 INFO [8262] POST http://localhost:3030/db/query
20:45:20 INFO [8262] Query = PREFIX wiki: PREFIX rdf: PREFIX rdfs: PREFIX owl: PREFIX swivt: PREFIX property: PREFIX xsd: SELECT * WHERE { swivt:page swivt:wikiPageSortKey ?s OPTIONAL { swivt:page swivt:redirectsTo ?r } } LIMIT 1
20:45:20 INFO [8262] exec/select
20:45:20 INFO [8262] 200 OK (1 ms)
20:45:20 INFO [8263] POST http://localhost:3030/db/query
```

For the first time it will be possible to actually test [1] the `SMWSparqlDatabase` implementation.

[0] http://semantic-mediawiki.org/wiki/Help:Using_SPARQL_and_RDF_stores#Jena_Fuseki
[1] https://api.travis-ci.org/jobs/27900842/log.txt?deansi=true