Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
fix: Exclude characters with special meaning in Lucene Query Parser s…
- Loading branch information
irinaschubert
committed
Oct 28, 2022
1 parent
68f19c3
commit b359916
Showing
13 changed files
with
316 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
{ | ||
"knora-api:arkUrl": { | ||
"@value": "http://0.0.0.0:3336/ark:/72163/1/0001/book=instance=04K", | ||
"@type": "xsd:anyURI" | ||
}, | ||
"rdfs:label": "Treasure Island", | ||
"knora-api:versionArkUrl": { | ||
"@value": "http://0.0.0.0:3336/ark:/72163/1/0001/book=instance=04K.20191129T100000673298Z", | ||
"@type": "xsd:anyURI" | ||
}, | ||
"knora-api:attachedToProject": { | ||
"@id": "http://rdfh.ch/projects/Lw3FC39BSzCwvmdOaTyLqQ" | ||
}, | ||
"knora-api:userHasPermission": "RV", | ||
"knora-api:creationDate": { | ||
"@value": "2019-11-29T10:00:00.673298Z", | ||
"@type": "xsd:dateTimeStamp" | ||
}, | ||
"knora-api:hasPermissions": "CR knora-admin:Creator|M knora-admin:ProjectMember|V knora-admin:KnownUser|RV knora-admin:UnknownUser", | ||
"@type": "books:Book", | ||
"books:hasTextType": { | ||
"knora-api:arkUrl": { | ||
"@value": "http://0.0.0.0:3336/ark:/72163/1/0001/book=instance=04K/00list_value_adventurQo", | ||
"@type": "xsd:anyURI" | ||
}, | ||
"knora-api:userHasPermission": "RV", | ||
"knora-api:valueCreationDate": { | ||
"@value": "2018-05-29T16:42:04.381Z", | ||
"@type": "xsd:dateTimeStamp" | ||
}, | ||
"knora-api:attachedToUser": { | ||
"@id": "http://rdfh.ch/users/BhkfBc3hTeS_IDo-JgXRbQ" | ||
}, | ||
"knora-api:valueHasUUID": "00list_value_adventurQ", | ||
"knora-api:hasPermissions": "CR knora-admin:Creator|M knora-admin:ProjectMember|V knora-admin:KnownUser|RV knora-admin:UnknownUser", | ||
"@type": "knora-api:ListValue", | ||
"@id": "http://rdfh.ch/0001/book-instance-04/values/has-list-value-03", | ||
"knora-api:listValueAsListNode": { | ||
"@id": "http://rdfh.ch/lists/0001/ynm02-05" | ||
}, | ||
"knora-api:versionArkUrl": { | ||
"@value": "http://0.0.0.0:3336/ark:/72163/1/0001/book=instance=04K/00list_value_adventurQo.20180529T164204381Z", | ||
"@type": "xsd:anyURI" | ||
} | ||
}, | ||
"@id": "http://rdfh.ch/0001/book-instance-04", | ||
"books:hasTitle": { | ||
"knora-api:valueAsString": "Treasure Island", | ||
"knora-api:arkUrl": { | ||
"@value": "http://0.0.0.0:3336/ark:/72163/1/0001/book=instance=04K/IN4R19yYR0ygi3K2VEHpUQe", | ||
"@type": "xsd:anyURI" | ||
}, | ||
"knora-api:versionArkUrl": { | ||
"@value": "http://0.0.0.0:3336/ark:/72163/1/0001/book=instance=04K/IN4R19yYR0ygi3K2VEHpUQe.20180529T164204381Z", | ||
"@type": "xsd:anyURI" | ||
}, | ||
"knora-api:userHasPermission": "RV", | ||
"knora-api:valueCreationDate": { | ||
"@value": "2018-05-29T16:42:04.381Z", | ||
"@type": "xsd:dateTimeStamp" | ||
}, | ||
"knora-api:attachedToUser": { | ||
"@id": "http://rdfh.ch/users/BhkfBc3hTeS_IDo-JgXRbQ" | ||
}, | ||
"knora-api:valueHasUUID": "IN4R19yYR0ygi3K2VEHpUQ", | ||
"knora-api:hasPermissions": "CR knora-admin:Creator|M knora-admin:ProjectMember|V knora-admin:KnownUser|RV knora-admin:UnknownUser", | ||
"@type": "knora-api:TextValue", | ||
"@id": "http://rdfh.ch/0001/book-instance-04/values/has-title-value-04" | ||
}, | ||
"knora-api:attachedToUser": { | ||
"@id": "http://rdfh.ch/users/9XBCrDV3SRa7kS1WwynB4Q" | ||
}, | ||
"@context": { | ||
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#", | ||
"knora-api": "http://api.knora.org/ontology/knora-api/v2#", | ||
"rdfs": "http://www.w3.org/2000/01/rdf-schema#", | ||
"books": "http://0.0.0.0:3333/ontology/0001/books/v2#", | ||
"xsd": "http://www.w3.org/2001/XMLSchema#" | ||
} | ||
} |
55 changes: 55 additions & 0 deletions
55
test_data/searchR2RV2/SearchbylabelSpecialCharacters.jsonld
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"knora-api:arkUrl": { | ||
"@value": "http://0.0.0.0:3336/ark:/72163/1/0001/book=instance=05I", | ||
"@type": "xsd:anyURI" | ||
}, | ||
"rdfs:label": "this .,:; is + a - test & with \\ special ( characters ) in [] {} | the || label?!", | ||
"knora-api:versionArkUrl": { | ||
"@value": "http://0.0.0.0:3336/ark:/72163/1/0001/book=instance=05I.20191129T100000673298Z", | ||
"@type": "xsd:anyURI" | ||
}, | ||
"knora-api:attachedToProject": { | ||
"@id": "http://rdfh.ch/projects/Lw3FC39BSzCwvmdOaTyLqQ" | ||
}, | ||
"knora-api:userHasPermission": "V", | ||
"knora-api:creationDate": { | ||
"@value": "2019-11-29T10:00:00.673298Z", | ||
"@type": "xsd:dateTimeStamp" | ||
}, | ||
"knora-api:hasPermissions": "CR knora-admin:Creator|M knora-admin:ProjectMember|V knora-admin:KnownUser,knora-admin:UnknownUser", | ||
"@type": "books:Book", | ||
"@id": "http://rdfh.ch/0001/book-instance-05", | ||
"books:hasTitle": { | ||
"knora-api:valueAsString": "A title", | ||
"knora-api:arkUrl": { | ||
"@value": "http://0.0.0.0:3336/ark:/72163/1/0001/book=instance=05I/dFLLWiihTAqxJsh0iTQ1HQ0", | ||
"@type": "xsd:anyURI" | ||
}, | ||
"knora-api:versionArkUrl": { | ||
"@value": "http://0.0.0.0:3336/ark:/72163/1/0001/book=instance=05I/dFLLWiihTAqxJsh0iTQ1HQ0.20180529T164204381Z", | ||
"@type": "xsd:anyURI" | ||
}, | ||
"knora-api:userHasPermission": "RV", | ||
"knora-api:valueCreationDate": { | ||
"@value": "2018-05-29T16:42:04.381Z", | ||
"@type": "xsd:dateTimeStamp" | ||
}, | ||
"knora-api:attachedToUser": { | ||
"@id": "http://rdfh.ch/users/BhkfBc3hTeS_IDo-JgXRbQ" | ||
}, | ||
"knora-api:valueHasUUID": "dFLLWiihTAqxJsh0iTQ1HQ", | ||
"knora-api:hasPermissions": "CR knora-admin:Creator|M knora-admin:ProjectMember|V knora-admin:KnownUser|RV knora-admin:UnknownUser", | ||
"@type": "knora-api:TextValue", | ||
"@id": "http://rdfh.ch/0001/book-instance-05/values/has-title-value-05" | ||
}, | ||
"knora-api:attachedToUser": { | ||
"@id": "http://rdfh.ch/users/9XBCrDV3SRa7kS1WwynB4Q" | ||
}, | ||
"@context": { | ||
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#", | ||
"knora-api": "http://api.knora.org/ontology/knora-api/v2#", | ||
"rdfs": "http://www.w3.org/2000/01/rdf-schema#", | ||
"books": "http://0.0.0.0:3333/ontology/0001/books/v2#", | ||
"xsd": "http://www.w3.org/2001/XMLSchema#" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.