diff --git a/src/main/scala/org/dbpedia/databus/SparqlClient.scala b/src/main/scala/org/dbpedia/databus/SparqlClient.scala index dc39fac..af05675 100644 --- a/src/main/scala/org/dbpedia/databus/SparqlClient.scala +++ b/src/main/scala/org/dbpedia/databus/SparqlClient.scala @@ -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, @@ -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 = diff --git a/src/test/resources/group.jsonld b/src/test/resources/group.jsonld index ea36528..dac4616 100644 --- a/src/test/resources/group.jsonld +++ b/src/test/resources/group.jsonld @@ -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", diff --git a/src/test/resources/newline_in_iri.jsonld b/src/test/resources/newline_in_iri.jsonld index cfb3976..045637f 100644 --- a/src/test/resources/newline_in_iri.jsonld +++ b/src/test/resources/newline_in_iri.jsonld @@ -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",