Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the query used to initialize the Lucene connector #4

Closed
ehrhart opened this issue Oct 4, 2022 · 2 comments
Closed

Add the query used to initialize the Lucene connector #4

ehrhart opened this issue Oct 4, 2022 · 2 comments
Assignees

Comments

@ehrhart
Copy link
Contributor

ehrhart commented Oct 4, 2022

The following query should be executed after creating the GraphDB repository. It is used to initialize the Lucene connector for full-text search queries.

PREFIX :<http://www.ontotext.com/connectors/lucene#>
PREFIX inst:<http://www.ontotext.com/connectors/lucene/instance#>
INSERT DATA {
	inst:search :createConnector '''
{
  "fields": [
    {
      "fieldName": "source_value",
      "propertyChain": [
        "http://erlangen-crm.org/current/P67i_is_referred_to_by",
        "http://www.w3.org/1999/02/22-rdf-syntax-ns#value"
      ],
      "indexed": true,
      "stored": true,
      "analyzed": true,
      "multivalued": true,
      "ignoreInvalidValues": false,
      "facet": false
    },
    {
      "fieldName": "source_label",
      "propertyChain": [
        "http://erlangen-crm.org/current/P67i_is_referred_to_by",
        "http://www.w3.org/2000/01/rdf-schema#label"
      ],
      "indexed": true,
      "stored": true,
      "analyzed": true,
      "multivalued": true,
      "ignoreInvalidValues": false,
      "facet": false
    }
  ],
  "languages": [],
  "types": [
    "http://data.odeuropa.eu/ontology/L11_Smell"
  ],
  "readonly": false,
  "detectFields": false,
  "importGraph": false,
  "skipInitialIndexing": false,
  "boostProperties": [],
  "stripMarkup": false
}
''' .
}
  1. First solution: creating a script which automates the insertion of the query (maybe in scripts/create_repo.py?)
  2. Second solution: updating the README with steps to manually execute the query
@pasqLisena pasqLisena self-assigned this Oct 4, 2022
@pasqLisena
Copy link
Member

Hi @ehrhart is the INSERT correct ? it is giving me errors in SPARQL

@ehrhart
Copy link
Contributor Author

ehrhart commented Oct 4, 2022

There was an issue when copy pasting, I've edited my post, it should be working fine now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants