literalleak.daml

来自「Jena推理机」· DAML 代码 · 共 37 行

DAML
37
字号
<!-- $Revision: 1.1 $ of $Date: 2003/08/22 13:30:34 $ -->
<!-- Note: this is just http://www.daml.org/2001/03/daml+oil-ex.daml, modified  -->
<!-- to make all names absolute with rdf:about rather than relative with rdf:ID -->
<!-- also fixed the XSD namespace -->

<rdf:RDF
  xmlns:rdf ="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
  xmlns:daml="http://www.daml.org/2001/03/daml+oil#"
  xmlns:xsd ="http://www.w3.org/2001/XMLSchema#"
  xmlns:dex ="http://www.daml.org/2001/03/daml+oil-ex#"
  xmlns:exd ="http://www.daml.org/2001/03/daml+oil-ex-dt#"
  xmlns     ="http://www.daml.org/2001/03/daml+oil-ex#"
>

<daml:Ontology rdf:about="">
  <daml:versionInfo>$Id: literalLeak.daml,v 1.1 2003/08/22 13:30:34 der Exp $</daml:versionInfo>
  <rdfs:comment>
    An example ontology, with data types taken from XML Schema
  </rdfs:comment>
  <daml:imports rdf:resource="http://www.daml.org/2001/03/daml+oil"/>
</daml:Ontology>

<Person rdf:about="http://www.daml.org/2001/03/daml+oil-ex#Santa">
  <rdfs:comment>
  Santa is an instance of Person. Santa has two pieces of
  associatedData, one of which is the real number 3.14159 and the
  other of which is the string "3.14159". We may be able to infer a
  logical inconsistency (because Persons can have at most 1 item of
  associatedData, and a value cannot be both a string and a real
  number).
  </rdfs:comment>
  <associatedData><xsd:real rdf:value="3.14159"/></associatedData>
  <associatedData><xsd:string rdf:value="3.14159"/></associatedData>
</Person>

</rdf:RDF>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?