Skip to content

Commit

Permalink
bug in set of messages
Browse files Browse the repository at this point in the history
  • Loading branch information
manonthegithub committed Feb 20, 2024
1 parent b0dbcae commit ff527a2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/main/scala/org/dbpedia/databus/SparqlClient.scala
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ object RdfConversions {

import org.apache.jena.riot.SysRIOT.fmtMessage

private val reportAsError = List(
private val reportAsError: Set[String] = List(
ViolationCodes.ILLEGAL_CHARACTER,
ViolationCodes.CONTROL_CHARACTER,
ViolationCodes.NON_XML_CHARACTER,
Expand Down Expand Up @@ -462,11 +462,11 @@ object RdfConversions {
ViolationCodes.PROHIBITED_COMPONENT_PRESENT,
ViolationCodes.SCHEME_REQUIRES_LOWERCASE,
ViolationCodes.SCHEME_PATTERN_MATCH_FAILED
).map(i => s"Code: $i")
).map(i => s"Code: $i/")
// there is a weird additional URI check for spaces
// org.apache.jena.riot.system.ParserProfileStd method internalMakeIRI line 95
// {@link org.apache.jena.riot.system.ParserProfileStd#internalMakeIRI}
.+("Spaces are not legal in URIs/IRIs.").toSet
.:+("Spaces are not legal in URIs/IRIs.").toSet


override def warning(message: String, line: Long, col: Long): Unit =
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/group.jsonld
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"@context" : "https://raw.githubusercontent.com/dbpedia/databus-git-mockup/main/dev/context.jsonld",
"@id": "http://databus.dbpedia.org/kuckuck/nest",
"@id": "htTp://databus.dbpedia.org/kuckuck/nest",
"@type": "dataid:Group",
"title": {
"@value": "Test Title",
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/newline_in_iri.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"abstract": "Countries\n2023-09-18T12:22:14Z",
"description": "Countries\n2023-09-18T12:22:14Z",
"license": "https://dalicc.net/licenselibrary/Cc010Universal",
"wasDerivedFrom": "https://metadata.coypu.org/dataset/wikidata-distribution\nWikidataQueryService\nhttps://query.wikidata.org/",
"wasDerivedFrom": "hTtps://metadata.coypu.org/dataset/wikidata-distribution\nWikidataQueryService\nhttps://query.wikidata.org/",
"distribution": [
{
"@type": "Part",
Expand Down

0 comments on commit ff527a2

Please sign in to comment.