Skip to content

Creating a repo does not work anymore from API because Unsupported repository type: graphdb:SailRepository #51

@vemonet

Description

@vemonet

Hi. I am trying to create a repo using a repo-config.ttl file. It was working in the past, but today it is not working and showing an error that does not make any sense

The error is:

{"message":"Error processing request (Unsupported repository type: graphdb:SailRepository)."}

I am using ontotext/graphdb:9.11.7-se docker image (latest se images as of today)

I am using the default config given here: https://graphdb.ontotext.com/documentation/10.7/manage-repos-with-restapi.html

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix rep: <http://www.openrdf.org/config/repository#>.
@prefix sr: <http://www.openrdf.org/config/repository/sail#>.
@prefix sail: <http://www.openrdf.org/config/sail#>.
@prefix graphdb: <http://www.ontotext.com/config/graphdb#>.

[] a rep:Repository ;
    rep:repositoryID "repo" ;
    rdfs:label "Sample repository TTL file." ;
    rep:repositoryImpl [
        rep:repositoryType "graphdb:SailRepository" ;
        sr:sailImpl [
            sail:sailType "graphdb:Sail" ;

            graphdb:read-only "false" ;

            # Inference and Validation
            graphdb:ruleset "rdfsplus-optimized" ;
            graphdb:disable-sameAs "true" ;
            graphdb:check-for-inconsistencies "false" ;

            # Indexing
            graphdb:entity-id-size "32" ;
            graphdb:enable-context-index "false" ;
            graphdb:enablePredicateList "true" ;
            graphdb:enable-fts-index "false" ;
            graphdb:fts-indexes ("default" "iri") ;
            graphdb:fts-string-literals-index "default" ;
            graphdb:fts-iris-index "none" ;

            # Queries and Updates
            graphdb:query-timeout "0" ;
            graphdb:throw-QueryEvaluationException-on-timeout "false" ;
            graphdb:query-limit-results "0" ;

            # Settable in the file but otherwise hidden in the UI and in the RDF4J console
            graphdb:base-URL "http://example.org/owlim#" ;
            graphdb:defaultNS "" ;
            graphdb:imports "" ;
            graphdb:repository-type "file-repository" ;
            graphdb:storage-folder "storage" ;
            graphdb:entity-index-size "10000000" ;
            graphdb:in-memory-literal-properties "true" ;
            graphdb:enable-literal-index "true" ;
        ]
    ].

Python code used to send the request:

import requests

with open("test/repo-config.ttl", "rb") as f:
    resp = requests.post(f"{base_url}/rest/repositories", files={'config': f})

How is it possible that GraphDB complains that graphdb:SailRepository is unsupported repository type? It has always been the default repo type.

@nikolaykolev

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions