Comments (3)
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.
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.
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)
- Clarify URL pattern to use HOT 2
- Ensure CORS is switched off for api responses
- Check before full text search is used
- Allow customisation of matching process
- Problem to use the plugin HOT 3
- view URL should be absolute HOT 1
- Implement types
- Additional parameter to configure the view HOT 3
- view_url datasette-compatible escaping HOT 1
- Update to reflect latest version of the Reconciliation API HOT 1
- Allow filtering by properties
- Use JSON schemas to validate requests and results
- Implement preview service
- Implement suggest service
- Implement data extension service HOT 7
- Add matching features HOT 1
- Allow description field
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from datasette-reconcile.