[nlp2rdf] push by kur...@gmail.com - draft ontologies on 2012-08-10 13:33 GMT

0 views
Skip to first unread message

nlp...@googlecode.com

unread,
Aug 10, 2012, 9:33:39 AM8/10/12
to nlp2r...@googlegroups.com
Revision: 92f4fb842681
Author: Sebastian Hellmann <kur...@googlemail.com>
Date: Fri Aug 10 06:33:15 2012
Log: draft ontologies
http://code.google.com/p/nlp2rdf/source/detail?r=92f4fb842681

Modified:
/nlp2rdf.lod2.eu/schema/frag/fragment-inf.ttl
/nlp2rdf.lod2.eu/schema/frag/fragment-val.ttl
/nlp2rdf.lod2.eu/schema/frag/fragment.ttl

=======================================
--- /nlp2rdf.lod2.eu/schema/frag/fragment-inf.ttl Fri Aug 10 01:06:58 2012
+++ /nlp2rdf.lod2.eu/schema/frag/fragment-inf.ttl Fri Aug 10 06:33:15 2012
@@ -1,3 +1,4 @@
+# please honor the turtle syntax and either use turtle comments or gdoc
comments
@base <http://nlp2rdf.lod2.eu/schema/frag/fragment.ttl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@@ -8,7 +9,14 @@
a owl:Ontology ;
owl:imports <http://nlp2rdf.lod2.eu/schema/frag/fragment.ttl> ;
rdfs:label "Fragment Ontology Axioms for Inference" ;
- rdfs:comment """ see also
http://nlp2rdf.lod2.eu/schema/frag/fragment-val.owl and
http://nlp2rdf.lod2.eu/schema/frag/fragment-inf.owl """ .
+rdfs:comment """This ontology is responsible for inferring implicit
triples.
+There are three ontologies total about the same terms:
+http://nlp2rdf.lod2.eu/schema/frag/fragment.ttl
+http://nlp2rdf.lod2.eu/schema/frag/fragment-val.ttl
+http://nlp2rdf.lod2.eu/schema/frag/fragment-inf.ttl
+NOTE: current drafts are here:
https://docs.google.com/folder/d/0B1Mk5ouIspH1N3QxMFFzVlZLbVk/edit
+""" .
+

<Fragment>
# this will infer that each fragment has at least one context
@@ -41,17 +49,3 @@
owl:hasValue "text/csv"
] .

-
-
-[] a owl:AllDisjointClasses ;
- owl:members <rfc5147Selection>,
<draft-hausenblas-csv-fragment-00Selection> .
-
-
-
-
-
-
-
-
-
-
=======================================
--- /nlp2rdf.lod2.eu/schema/frag/fragment-val.ttl Fri Aug 10 01:06:58 2012
+++ /nlp2rdf.lod2.eu/schema/frag/fragment-val.ttl Fri Aug 10 06:33:15 2012
@@ -1,3 +1,4 @@
+# please honor the turtle syntax and either use turtle comments or gdoc
comments
@base <http://nlp2rdf.lod2.eu/schema/frag/fragment.ttl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@@ -8,7 +9,14 @@
a owl:Ontology ;
owl:imports <http://nlp2rdf.lod2.eu/schema/frag/fragment-inf.ttl> ;
rdfs:label "Fragment Ontology Axioms for Validation" ;
- rdfs:comment """ see also
http://nlp2rdf.lod2.eu/schema/frag/framgent.owl and
http://nlp2rdf.lod2.eu/schema/frag/framgent-inf.owl """ .
+rdfs:comment """ This ontology is responsible for checking consistency.
+There are three ontologies total about the same terms:
+http://nlp2rdf.lod2.eu/schema/frag/fragment.ttl
+http://nlp2rdf.lod2.eu/schema/frag/fragment-val.ttl
+http://nlp2rdf.lod2.eu/schema/frag/fragment-inf.ttl
+
+NOTE: current drafts are here:
https://docs.google.com/folder/d/0B1Mk5ouIspH1N3QxMFFzVlZLbVk/edit
+""" .

<rfc5147Selection>
# referenceContext need to be of the same type
@@ -35,7 +43,7 @@
owl:allValuesFrom <draft-hausenblas-csv-fragment-00Selection>
] .

-[] a owl:AllDisjointClasses ;
+[] a owl:AllDisjointClasses ;
owl:members <rfc5147Selection>, <rfc5147ExtendedSelection> ,
<draft-hausenblas-csv-fragment-00Selection> .

#### properties
@@ -47,8 +55,7 @@
<anchorOf> a owl:FunctionalProperty .


+### missing
+# If a selection does not have an explicit referenceContext, then the
referenceContext should be itself.

-
-
-
-
+###### please add missing validation below
=======================================
--- /nlp2rdf.lod2.eu/schema/frag/fragment.ttl Fri Aug 10 01:06:58 2012
+++ /nlp2rdf.lod2.eu/schema/frag/fragment.ttl Fri Aug 10 06:33:15 2012
@@ -1,19 +1,22 @@
+# please honor the turtle syntax and either use turtle comments or gdoc
comments
@base <http://nlp2rdf.lod2.eu/schema/frag/fragment.ttl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

-@prefix sso: <http://nlp2rdf.lod2.eu/schema/sso/> .
-@prefix scms: <http://ns.aksw.org/scms/> .
-
<> a owl:Ontology ;
rdfs:label "Fragment Ontology" ;
- rdfs:comment """ see also
http://nlp2rdf.lod2.eu/schema/frag/framgent-val.owl and
http://nlp2rdf.lod2.eu/schema/frag/frament-inf.owl """ .
+ rdfs:comment """ This ontology just lists the available classes and
properties and subclassof axioms.
+There are three ontologies total about the same terms:
+http://nlp2rdf.lod2.eu/schema/frag/fragment.ttl
+http://nlp2rdf.lod2.eu/schema/frag/fragment-val.ttl
+http://nlp2rdf.lod2.eu/schema/frag/fragment-inf.ttl
+NOTE: current drafts are here:
https://docs.google.com/folder/d/0B1Mk5ouIspH1N3QxMFFzVlZLbVk/edit
+""" .

<Fragment> a owl:Class ;
rdfs:label "A fragment of an information resource" .
-

<TextFragment> a owl:Class ;
rdfs:subClassOf <Fragment> .
@@ -35,17 +38,19 @@
rdfs:subClassOf <rfc5147Selection> ;
rdfs:seeAlso <http://nlp2rdf.org/nif-2-0-draft> ;
rdfs:definedBy <> .
-
+
+<OffsetbasedString> a owl:Class ;
+ rdfs:subClassOf <Text/PlainFragment> .
+<ContextHashbasedString> a owl:Class ;
+ rdfs:subClassOf <Text/PlainFragment> .
+
<draft-hausenblas-csv-fragment-00Selection> a owl:Class ;
rdfs:subClassOf <Text/CSVFragment> ;
rdfs:seeAlso
<http://tools.ietf.org/html/draft-hausenblas-csv-fragment-00> ;
rdfs:definedBy <> .

-
#### Object properties
<referenceContext> a owl:ObjectProperty .
-
-

#### Object properties
<mediatype> a owl:DatatypeProperty .
@@ -62,8 +67,6 @@
<beginIndex> "0"^^xsd:int ;
<endIndex> "1765"^^xsd:int ;
<referenceContext>
<http://nlp2rdf.lod2.eu/usecases/plaintext.txt#char=0,> .
-
-

## inferable with OWL or rules:
<http://nlp2rdf.lod2.eu/usecases/plaintext.txt#char=0,6> a
<rfc5147Selection> ;
@@ -72,8 +75,11 @@
<anchorOf> "Mexico" ;
<referenceContext>
<http://nlp2rdf.lod2.eu/usecases/plaintext.txt#char=0,> .

-
-
+## is this correct?
+<http://nlp2rdf.lod2.eu/usecases/plaintext.txt#char=0,>
+owl:sameAs <http://nlp2rdf.lod2.eu/usecases/plaintext.txt#char=0,1765>
+<http://nlp2rdf.lod2.eu/usecases/plaintext.txt#char=0,>
+owl:sameAs <http://nlp2rdf.lod2.eu/usecases/plaintext.txt>

# this is optional:
<http://nlp2rdf.lod2.eu/usecases/plaintext.txt#char=0,>
<anchorOf> """Mexico expects the U.S. to accelerate the disbursement of aid
to strengthen its fight against drug gangs and put back on track a $1.4
billion program that has been hamstrung by delays in recent years, Foreign
Affairs Minister Patricia Espinosa said.
@@ -83,6 +89,5 @@
U.S. anti-narcotics aid to Mexico suffered delays even as the death toll
from President Felipe Calderon's crackdown on drug gangs surged to over
35,000 victims since he took office in 2006. Mexico received at least $480
million in U.S. aid under the program since it was signed in 2008 by
Calderon and former President George W. Bush, with $380 million arriving
between 2008 and 2010, according to data from the Foreign Ministry.
The shortfall in U.S. assistance has delayed the delivery of equipment
including polygraph machines and Black Hawk helicopters needed to combat
drug traffickers. It has also delayed the training of Mexican officials,
according to the GAO report.
Until a year ago the U.S. had delivered only about 9 percent of the
promised aid to Mexico and Central America because agencies involved lacked
staff and funding, the U.S. Government Accountability Office said in a
report in 2010. """.
-

-
+
Reply all
Reply to author
Forward
0 new messages