jena dont reconize inference for literals

时间:2019-01-18 18:15:27

标签: rdf jena rdfs rdf-xml

i have a rdf collection and a rdfs file, i am using jena to obtain the inference using both of them, but there is an error that said Reason for inconsistency: The literal value does not satisfy the datatype restriction. This is the rdfs.xml model:

<?xml version="1.0"?>
<rdf:RDF 
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xml:base="http://www.equipo01.com/">

<rdfs:Class rdf:about="Persona">
    <rdfs:label xml:lang="es">Documento de Zaguan</rdfs:label>
    <rdfs:comment>Documento repositorio de Zaguan</rdfs:comment> 
</rdfs:Class>

<rdf:Property rdf:about="Nombre">
    <rdfs:label xml:lang="es">Formato</rdfs:label>
    <rdfs:comment>Formato del documento</rdfs:comment>
    <rdfs:domain rdf:resource="Persona"/>
    <rdfs:range rdf:resource="rdfs:Literal"/>
</rdf:Property>

</rdf:RDF>

and the rdf.xml collection:

    <rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:j.0="http://www.equipo01.com/">
      <rdf:Description rdf:about="http://www.equipo01.com/oai_zaguan.unizar.es_10002.xml">
        <j.0:Nombre>ea</j.0:Nombre>
        <rdf:type rdf:resource="http://www.equipo01.com/Persona"/>
      </rdf:Description>
    </rdf:RDF>

0 个答案:

没有答案