Eclipse RDF4J · Capability

RDF4J Server REST API — Namespaces

RDF4J Server REST API — Namespaces. 5 operations. Lead operation: List namespaces. Self-contained Naftiko capability covering one Eclipse Rdf4j business surface.

Run with Naftiko Eclipse Rdf4jNamespaces

What You Can Do

GET
Listnamespaces — List namespaces
/v1/repositories/{repositoryid}/namespaces
DELETE
Clearnamespaces — Clear namespaces
/v1/repositories/{repositoryid}/namespaces
GET
Getnamespace — Get namespace
/v1/repositories/{repositoryid}/namespaces/{prefix}
PUT
Setnamespace — Set namespace
/v1/repositories/{repositoryid}/namespaces/{prefix}
DELETE
Deletenamespace — Delete namespace
/v1/repositories/{repositoryid}/namespaces/{prefix}

MCP Tools

list-namespaces

List namespaces

read-only idempotent
clear-namespaces

Clear namespaces

idempotent
get-namespace

Get namespace

read-only idempotent
set-namespace

Set namespace

idempotent
delete-namespace

Delete namespace

idempotent

Capability Spec

rdf4j-server-rest-namespaces.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: RDF4J Server REST API — Namespaces
  description: 'RDF4J Server REST API — Namespaces. 5 operations. Lead operation: List namespaces. Self-contained Naftiko
    capability covering one Eclipse Rdf4j business surface.'
  tags:
  - Eclipse Rdf4j
  - Namespaces
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ECLIPSE_RDF4J_API_KEY: ECLIPSE_RDF4J_API_KEY
capability:
  consumes:
  - type: http
    namespace: rdf4j-server-rest-namespaces
    baseUri: http://localhost:8080/rdf4j-server
    description: RDF4J Server REST API — Namespaces business capability. Self-contained, no shared references.
    resources:
    - name: repositories-repositoryID-namespaces
      path: /repositories/{repositoryID}/namespaces
      operations:
      - name: listnamespaces
        method: GET
        description: List namespaces
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: clearnamespaces
        method: DELETE
        description: Clear namespaces
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-repositoryID-namespaces-prefix
      path: /repositories/{repositoryID}/namespaces/{prefix}
      operations:
      - name: getnamespace
        method: GET
        description: Get namespace
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: setnamespace
        method: PUT
        description: Set namespace
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletenamespace
        method: DELETE
        description: Delete namespace
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: rest
    namespace: rdf4j-server-rest-namespaces-rest
    port: 8080
    description: REST adapter for RDF4J Server REST API — Namespaces. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/repositories/{repositoryid}/namespaces
      name: repositories-repositoryid-namespaces
      description: REST surface for repositories-repositoryID-namespaces.
      operations:
      - method: GET
        name: listnamespaces
        description: List namespaces
        call: rdf4j-server-rest-namespaces.listnamespaces
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: clearnamespaces
        description: Clear namespaces
        call: rdf4j-server-rest-namespaces.clearnamespaces
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{repositoryid}/namespaces/{prefix}
      name: repositories-repositoryid-namespaces-prefix
      description: REST surface for repositories-repositoryID-namespaces-prefix.
      operations:
      - method: GET
        name: getnamespace
        description: Get namespace
        call: rdf4j-server-rest-namespaces.getnamespace
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: setnamespace
        description: Set namespace
        call: rdf4j-server-rest-namespaces.setnamespace
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletenamespace
        description: Delete namespace
        call: rdf4j-server-rest-namespaces.deletenamespace
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: rdf4j-server-rest-namespaces-mcp
    port: 9090
    transport: http
    description: MCP adapter for RDF4J Server REST API — Namespaces. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-namespaces
      description: List namespaces
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rdf4j-server-rest-namespaces.listnamespaces
      outputParameters:
      - type: object
        mapping: $.
    - name: clear-namespaces
      description: Clear namespaces
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: rdf4j-server-rest-namespaces.clearnamespaces
      outputParameters:
      - type: object
        mapping: $.
    - name: get-namespace
      description: Get namespace
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rdf4j-server-rest-namespaces.getnamespace
      outputParameters:
      - type: object
        mapping: $.
    - name: set-namespace
      description: Set namespace
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: rdf4j-server-rest-namespaces.setnamespace
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-namespace
      description: Delete namespace
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: rdf4j-server-rest-namespaces.deletenamespace
      outputParameters:
      - type: object
        mapping: $.