Giter Club home page Giter Club logo

Comments (3)

JBPressac avatar JBPressac commented on August 25, 2024

For information, the /-/reconcile URL returns:

{
  "versions": [
    "0.1",
    "0.2"
  ],
  "name": "PRELIB Personnes reconciliation",
  "identifierSpace": "http://rdf.freebase.com/ns/type.object.id",
  "schemaSpace": "http://rdf.freebase.com/ns/type.object.id",
  "defaultTypes": "personne",
  "view": "/prelib/prelib_personne/{{id}}"
}

however, the reconciliation Service API mentions that the defaultTypes field should contain a list of types:

A type represents a category of entities. It comprises the following fields:
id
an identifier, which is a non-empty string. This identifier must be unique among all types;
name
a human-readable name, which is a non-empty string.

In consequence, the manifest should rather be:

{
  "versions": [
    "0.1",
    "0.2"
  ],
  "name": "PRELIB Personnes reconciliation",
  "identifierSpace": "http://rdf.freebase.com/ns/type.object.id",
  "schemaSpace": "http://rdf.freebase.com/ns/type.object.id",
  "defaultTypes": [
    {
      "id": "/personne",
      "name": "personne"
    }
  ],
  "view": "/prelib/prelib_personne/{{id}}"
}

from datasette-reconcile.

drkane avatar drkane commented on August 25, 2024

Thanks, I think you're right.

Tricky to know the best way to configure this. I think I might just check that type_default is in the correct format in the configuration, so you would need to add a list with the correct types in the config.

It's a bit confusing about what openrefine does and doesn't accept for the type value in the response too.

from datasette-reconcile.

JBPressac avatar JBPressac commented on August 25, 2024

There is a way to validate the manifest: Using JSON Schema. The JSON Schema for reconciliation service manifests is listed in the reconciliation Service API (chapter A.1 Manifest Schema). This JSON schema could be used with an online validator as JSON Schema Validator and Generator. If you try to validate the preceding manifest, you could notice that there is also an error with the view field, which should use a url sub-field.

{
  "versions": [
    "0.1",
    "0.2"
  ],
  "name": "PRELIB Personnes reconciliation",
  "identifierSpace": "http://rdf.freebase.com/ns/type.object.id",
  "schemaSpace": "http://rdf.freebase.com/ns/type.object.id",
  "defaultTypes": [
    {
      "id": "/personne",
      "name": "personne"
    }
  ],
  "view": {"url" : "/prelib/prelib_personne/{{id}}"}
}

from datasette-reconcile.

Related Issues (18)

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.