Comments (4)
The error did go away when I added
:- use_module(library(semweb/rdfa)).
to lib/semweb/rdf_file_type.pl
from cliopatria.
@firefrorefiddle Thanks for reporting.
The Pirates demo loads data from a Turtle manifest file, which includes the following URL as a data source: http://semanticweb.cs.vu.nl/2009/11/sem/
The URL exposes an RDF/XML file that (erroneously) claims to be an HTML file in its Content-Type
header (Media Type text/html
). Library semweb/rdf_db
does not implement enough clever heuristics in order to figure that the claim made in the HTTP reply header (=HTML) is inconsistent with the actual content of the HTTP reply body (=RDF/XML).
The error that you encountered is thrown later, when the HTML Media Type is matched onto the RDFa serialization format, whose library is not loaded by ClioPatria:
rdf_content_type('text/html', 0.66, rdfa). %AC
IMO two fixes are needed:
rdf_content_type/3
needs to be made into a multi-file predicate that is distributed over the RDF/XML, RDFa, Turtle/TriG, and N-Quads/N-Triples modules.semweb/rdfa
needs to be loaded by ClioPatria, because a user may wish to load data in that serialization format.
@JanWielemaker Do you agree?, especially WRT (1)?
from cliopatria.
It is not the whole story. The server serves the documentation if the accept type contains html
, but the documentation is not in rdfa
. So, after loading the rdfa
plugin it will load the html and zero triples. Seems the critical fix is to fix the content negotiation at the server end (an nginx server).
from cliopatria.
Fixed the server, so at least this works again:
?- rdf_load('http://semanticweb.cs.vu.nl/2009/11/sem/').
The other stuff is probably a good idea, though I'm still a little in doubt.
from cliopatria.
Related Issues (20)
- Docker Image HOT 2
- Pengine example HOT 4
- Mailing list list is broken HOT 1
- Add a 'clio' binary
- Rewrite win-config into something that could be easily run on Windows HOT 4
- Bug with SERVICE directive HOT 3
- Upload local RDF file to Cliopatria using Java
- Upload local file into Cliopatria using Java HOT 1
- pldoc issue with latest swipl-devel (7.5.13-7-gf9d7db01a) HOT 3
- Filter-only variables should not be part of `*` HOT 2
- Codepoint escape sequences are not always processed correctly HOT 1
- Support for SHACL HOT 2
- HTTP Server times out on browse/list_graph HOT 11
- SPARQL Update LOAD resourceIRI INTO GRAPH <graphIRI> not conform specification HOT 3
- setup.pl fails on call get/5 on Windows. HOT 2
- rdf_format_plugin `rdfa' does not exist HOT 4
- How to stop the daemon from listening on port 80 HOT 4
- PubChem compound is not able to query the linked data cloud for resource in its own RDF HOT 3
- What's the recommended way to run tests in the CI?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cliopatria.