Sveino / Inst4CIM-KG

Instance of CIM Knowledge Graph
Apache License 2.0
5 stars 1 forks source link

Datatype XMLLiteral in Definitions #72

Closed VladimirAlexiev closed 2 months ago

VladimirAlexiev commented 2 months ago

We checked literals for unusual datatypes:

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
select * where {
  ?x ?p ?o
  filter(isLiteral(?o))
  bind(datatype(?o) as ?dt)
  filter(?dt not in (xsd:string, rdf:langString, xsd:date, xsd:dateTime))
}

It turns out that 25 definitions are marked as rdf:XMLLiteral. But they don't include any XML markup, so we should use the simpler datatype xsd:string.

VladimirAlexiev commented 2 months ago

fix13-XMLLiteral-72.ru