Skip to content

Nomisma.org schema extraction error #6

@CaptSolo

Description

@CaptSolo

When trying to retrieve schema from nomisma.org the extractor fails to start retrieving the schema:

ERROR [http-nio-8080-exec-3] [l.l.o.s.s.e.v.SchemaExtractor] [:]: The endpoint [ https://nomisma.org/query ] is not available for GET and POST requests, stopping the schema extraction for the request [ 5284412813944285480 ]

The issue is that the nomisma.org endpoint (besides requiring GET requests) fails to understand the Accept: header sent by the OBIS extractor (which is the default header sent by Jena):

application/sparql-results+json, application/sparql-results+xml;q=0.9, text/csv;q=0.8, text/tab-separated-values;q=0.7, */*;q=0.1

The solution is to send a simpler Accept: header listing just one result type such as:

application/sparql-results+json

I will supply a pull request that adds an extractor parameter that lets a user specify the required result type. If this parameter is not specified, the extractor's behavior will not change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions