Skip to content

Commit

Permalink
Added sparql queries for indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
sahalali committed May 7, 2024
1 parent 27fa846 commit 8387a67
Show file tree
Hide file tree
Showing 7 changed files with 224 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/sparql/index/concept.index.sparql
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
PREFIX :<http://www.ontotext.com/connectors/lucene#>
PREFIX inst:<http://www.ontotext.com/connectors/lucene/instance#>
INSERT DATA {
inst:concept-index :createConnector '''
{
"fields": [
{
"fieldName": "name",
"propertyChain": [
"http://www.w3.org/2000/01/rdf-schema#label"
],
"indexed": true,
"stored": true,
"analyzed": true,
"multivalued": true,
"ignoreInvalidValues": false,
"facet": true
}
],
"languages": [],
"types": [
"http://www.w3.org/2004/02/skos/core#Concept"
],
"readonly": false,
"detectFields": false,
"importGraph": false,
"skipInitialIndexing": false,
"boostProperties": [],
"stripMarkup": false
}
''' .
}
32 changes: 32 additions & 0 deletions src/sparql/index/event-type.index.sparql
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
PREFIX :<http://www.ontotext.com/connectors/lucene#>
PREFIX inst:<http://www.ontotext.com/connectors/lucene/instance#>
INSERT DATA {
inst:event-type-index :createConnector '''
{
"fields": [
{
"fieldName": "name",
"propertyChain": [
"http://www.w3.org/2000/01/rdf-schema#label"
],
"indexed": true,
"stored": true,
"analyzed": true,
"multivalued": true,
"ignoreInvalidValues": false,
"facet": true
}
],
"languages": [],
"types": [
"http://kg.artsdata.ca/ontology/EventType"
],
"readonly": false,
"detectFields": false,
"importGraph": false,
"skipInitialIndexing": false,
"boostProperties": [],
"stripMarkup": false
}
''' .
}
32 changes: 32 additions & 0 deletions src/sparql/index/event.index.sparql
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
PREFIX :<http://www.ontotext.com/connectors/lucene#>
PREFIX inst:<http://www.ontotext.com/connectors/lucene/instance#>
INSERT DATA {
inst:event-index :createConnector '''
{
"fields": [
{
"fieldName": "name",
"propertyChain": [
"http://www.w3.org/2000/01/rdf-schema#label"
],
"indexed": true,
"stored": true,
"analyzed": true,
"multivalued": true,
"ignoreInvalidValues": false,
"facet": true
}
],
"languages": [],
"types": [
"http://schema.org/Event"
],
"readonly": false,
"detectFields": false,
"importGraph": false,
"skipInitialIndexing": false,
"boostProperties": [],
"stripMarkup": false
}
''' .
}
32 changes: 32 additions & 0 deletions src/sparql/index/organization.index.sparql
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
PREFIX :<http://www.ontotext.com/connectors/lucene#>
PREFIX inst:<http://www.ontotext.com/connectors/lucene/instance#>
INSERT DATA {
inst:organization-index :createConnector '''
{
"fields": [
{
"fieldName": "name",
"propertyChain": [
"http://www.w3.org/2000/01/rdf-schema#label"
],
"indexed": true,
"stored": true,
"analyzed": true,
"multivalued": true,
"ignoreInvalidValues": false,
"facet": true
}
],
"languages": [],
"types": [
"http://schema.org/Organization"
],
"readonly": false,
"detectFields": false,
"importGraph": false,
"skipInitialIndexing": false,
"boostProperties": [],
"stripMarkup": false
}
''' .
}
32 changes: 32 additions & 0 deletions src/sparql/index/person.index.sparql
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
PREFIX :<http://www.ontotext.com/connectors/lucene#>
PREFIX inst:<http://www.ontotext.com/connectors/lucene/instance#>
INSERT DATA {
inst:person-index :createConnector '''
{
"fields": [
{
"fieldName": "name",
"propertyChain": [
"http://www.w3.org/2000/01/rdf-schema#label"
],
"indexed": true,
"stored": true,
"analyzed": true,
"multivalued": true,
"ignoreInvalidValues": false,
"facet": true
}
],
"languages": [],
"types": [
"http://schema.org/Person"
],
"readonly": false,
"detectFields": false,
"importGraph": false,
"skipInitialIndexing": false,
"boostProperties": [],
"stripMarkup": false
}
''' .
}
32 changes: 32 additions & 0 deletions src/sparql/index/place.index.sparql
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
PREFIX :<http://www.ontotext.com/connectors/lucene#>
PREFIX inst:<http://www.ontotext.com/connectors/lucene/instance#>
INSERT DATA {
inst:place-index :createConnector '''
{
"fields": [
{
"fieldName": "name",
"propertyChain": [
"http://www.w3.org/2000/01/rdf-schema#label"
],
"indexed": true,
"stored": true,
"analyzed": true,
"multivalued": true,
"ignoreInvalidValues": false,
"facet": true
}
],
"languages": [],
"types": [
"http://schema.org/Place"
],
"readonly": false,
"detectFields": false,
"importGraph": false,
"skipInitialIndexing": false,
"boostProperties": [],
"stripMarkup": false
}
''' .
}
32 changes: 32 additions & 0 deletions src/sparql/index/resource.index.sparql
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
PREFIX :<http://www.ontotext.com/connectors/lucene#>
PREFIX inst:<http://www.ontotext.com/connectors/lucene/instance#>
INSERT DATA {
inst:place-index :createConnector '''
{
"fields": [
{
"fieldName": "name",
"propertyChain": [
"http://www.w3.org/2000/01/rdf-schema#label"
],
"indexed": true,
"stored": true,
"analyzed": true,
"multivalued": true,
"ignoreInvalidValues": false,
"facet": true
}
],
"languages": [],
"types": [
"http://schema.org/Place"
],
"readonly": false,
"detectFields": false,
"importGraph": false,
"skipInitialIndexing": false,
"boostProperties": [],
"stripMarkup": false
}
''' .
}

0 comments on commit 8387a67

Please sign in to comment.