Git Product home page Git Product logo

Comments (6)

agustaf9 avatar agustaf9 commented on June 15, 2024 1

Steps to reproduce in a new fuseki dataset:

  1. Save data below into a trig file
  2. Upload to fuseki using "Add Data" tab in web interface
  3. Query DESCRIBE<https://ex.com/Test1> Returns Result
  4. Query DESCRIBE<https://ex.com/Test1> FROM <urn:x-arq:DefaultGraph> Error 502
@prefix test: <https://ex.com/ontologies/> .
@prefix  😀: <https://ex.com/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

 😀:Test1 a test:Test ;
    test:title "Test"^^xsd:string ;
.

from jena.

agustaf9 avatar agustaf9 commented on June 15, 2024 1

Fuseki is behind a proxy?

It is running in a container on kubernetes behind a Traefik ingress

from jena.

agustaf9 avatar agustaf9 commented on June 15, 2024

I just tried it on 5.0.0 and I get a similar error

from jena.

rvesse avatar rvesse commented on June 15, 2024

This bug report is incomplete. As you note it appears to be triggered by your data but you have failed to provide that data

I would also suggest experimenting with sending different Accept headers as it's possible your data has a prefix declaration that is legal for some RDF syntaxes but not others

from jena.

afs avatar afs commented on June 15, 2024

Fuseki is behind a proxy?

org.apache.jena.shared.PrefixMapping$IllegalPrefixException: 😀

FROM triggers DynamicDatasets.dynamicDataset which sets up prefixes as it is created at the start of the request, and does not wait until prefixes are used (which would only delay problems to later in the request execution).

While 😀 is a legal prefix name in Turtle family languages, it is not a legal prefix for RDF/XML. That must be a XML NCName to be used in the predicate position. In RDF/XML properties are qnames.

Jena PrefixMapping add restrictions to ensure that, when used to write RDF/XML data, the writing process won't fail because of prefix names. PrefixMapping is quite old code and we don't want to change the contract.

For most processing there is an internal abstraction that supports TriG.

The code in GraphUnionRead should skip such prefixes.

from jena.

afs avatar afs commented on June 15, 2024

PR #2386 includes allowing "😀" in graph prefix mappings. It turns out that Jena's RDF/XML writing was already quite defensive and converted illegal prefixes (illegal to RDF/XML writing in XML 1.0) to give them a generated legal name. Combine that with ensuring writing RDF/XML follows the more restrictive XML 1.0 with limitation to java char size, then prefixes generally compatible across Turtle TriG etc.

from jena.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.