Revision: 234107777630
Author: Sebastian Hellmann <
kur...@googlemail.com>
Date: Fri Aug 10 00:43:02 2012
Log: first draft of ontologies
http://code.google.com/p/nlp2rdf/source/detail?r=234107777630
Added:
/
nlp2rdf.lod2.eu/schema/frag/fragment-inf.ttl
/
nlp2rdf.lod2.eu/schema/frag/fragment-val.ttl
Modified:
/
nlp2rdf.lod2.eu/schema/frag/fragment.ttl
=======================================
--- /dev/null
+++ /
nlp2rdf.lod2.eu/schema/frag/fragment-inf.ttl Fri Aug 10 00:43:02 2012
@@ -0,0 +1,59 @@
+@base <
http://nlp2rdf.lod2.eu/schema/frag/frament.owl#> .
+@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#> .
+
+<> a owl:Ontology ;
+ rdfs:label "Fragment Ontology Axioms for Inference" ;
+ owl:imports <
http://nlp2rdf.lod2.eu/schema/frag/frament.owl>
+ rdfs:comment """ see also
http://nlp2rdf.lod2.eu/schema/frag/frament-val.owl and
http://nlp2rdf.lod2.eu/schema/frag/frament-inf.owl """ .
+
+<Fragment>
+# this will infer that each fragment has at least one context
+ owl:equivalentClass [
+ a owl:Restriction ;
+ owl:onProperty <referenceContext> ;
+ owl:someValuesFrom owl:Thing
+ ] .
+
+ <TextFragment>
+# this will infer that each fragment has begin index, although it might be
unknown
+ owl:equivalentClass [
+ a owl:Restriction ;
+ owl:onProperty <beginIndex> ;
+ owl:someValuesFrom xsd:int
+ ] .
+
+<Text/PlainFragment>
+# this will infer that each Text/PlainFragment has mediatype "text/plain"
+ owl:equivalentClass [
+ a owl:Restriction ;
+ owl:onProperty <mediatype> ;
+ owl:hasValue "text/plain"
+ ] .
+
+<Text/CSVFragment>
+ owl:equivalentClass [
+ a owl:Restriction ;
+ owl:onProperty <mediatype> ;
+ owl:hasValue "text/csv"
+ ] .
+
+
+
+[] a owl:AllDisjointClasses ;
+ owl:members <rfc5147Selection>,
<draft-hausenblas-csv-fragment-00Selection> ;
+
+#### properties
+<referenceContext> a owl:FunctionalProperty .
+<mediatype> a owl:FunctionalProperty .
+
+
+
+
+
+
+
+
+
=======================================
--- /dev/null
+++ /
nlp2rdf.lod2.eu/schema/frag/fragment-val.ttl Fri Aug 10 00:43:02 2012
@@ -0,0 +1,52 @@
+@base <
http://nlp2rdf.lod2.eu/schema/frag/frament.owl#> .
+@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#> .
+
+<> a owl:Ontology ;
+ rdfs:label "Fragment Ontology Axioms for Validation" ;
+ owl:imports <
http://nlp2rdf.lod2.eu/schema/frag/frament-inf.owl>
+ rdfs:comment """ see also
http://nlp2rdf.lod2.eu/schema/frag/frament.owl
and
http://nlp2rdf.lod2.eu/schema/frag/frament-inf.owl """ .
+
+<rfc5147Selection>
+# referenceContext need to be of the same type
+ owl:equivalentClass [
+ a owl:Restriction ;
+ owl:onProperty <referenceContext> ;
+ owl:allValuesFrom <rfc5147Selection>
+ ] .
+
+<rfc5147ExtendedSelection>
+# referenceContext need to be of the same type
+ owl:equivalentClass [
+ a owl:Restriction ;
+ owl:onProperty <referenceContext> ;
+ owl:allValuesFrom <rfc5147ExtendedSelection>
+ ] .
+
+
+<draft-hausenblas-csv-fragment-00Selection>
+# referenceContext need to be of the same type
+ owl:equivalentClass [
+ a owl:Restriction ;
+ owl:onProperty <referenceContext> ;
+ owl:allValuesFrom <draft-hausenblas-csv-fragment-00Selection>
+ ] .
+
+[] a owl:AllDisjointClasses ;
+ owl:members <rfc5147Selection>, <rfc5147ExtendedSelection> ,
<draft-hausenblas-csv-fragment-00Selection> ;
+
+#### properties
+<referenceContext> a owl:FunctionalProperty .
+<mediatype> a owl:FunctionalProperty .
+<beginIndex> a owl:FunctionalProperty .
+
+
+
+
+
+
+
+
+
=======================================
--- /
nlp2rdf.lod2.eu/schema/frag/fragment.ttl Thu Aug 9 15:31:53 2012
+++ /
nlp2rdf.lod2.eu/schema/frag/fragment.ttl Fri Aug 10 00:43:02 2012
@@ -1,5 +1,4 @@
-
-@base <
http://nlp2rdf.lod2.eu/schema/frag/frament.owl> .
+@base <
http://nlp2rdf.lod2.eu/schema/frag/frament.owl#> .
@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#> .
@@ -10,70 +9,74 @@
<> a owl:Ontology ;
rdfs:label "Fragment Ontology" ;
- rdfs:comment """ """ .
+ rdfs:comment """ see also
http://nlp2rdf.lod2.eu/schema/frag/frament-val.owl and
http://nlp2rdf.lod2.eu/schema/frag/frament-inf.owl """ .
-<Fragment>
- a owl:Class ;
- owl:equivalentClass [
- a owl:Restriction ;
- owl:onProperty <referenceContext> ;
- owl:someValuesFrom owl:Thing
- ] .
+<Fragment> a owl:Class ;
+ rdfs:label "A fragment of an information resource" .
+
<TextFragment> a owl:Class ;
rdfs:subClassOf <Fragment> ;
<Text/PlainFragment> a owl:Class ;
- rdfs:subClassOf <TextFragment> ;
- owl:equivalentClass [
- a owl:Restriction ;
- owl:onProperty <mediatype> ;
- owl:hasValue "text/plain"
- ] .
+ rdfs:subClassOf <TextFragment> .
<Text/CSVFragment> a owl:Class ;
- rdfs:subClassOf <TextFragment> ;
- owl:equivalentClass [
- a owl:Restriction ;
- owl:onProperty <mediatype> ;
- owl:hasValue "text/csv"
- ] .
+ rdfs:subClassOf <TextFragment> .
<rfc5147Selection> a owl:Class ;
rdfs:label "This class can be assigned to all URIs that have fragment id
and use the RFC5147 syntax " ;
rdfs:subClassOf <Text/PlainFragment> ;
rdfs:seeAlso <
http://tools.ietf.org/html/rfc5147> ;
- rdfs:definedBy <
http://tools.ietf.org/html/rfc5147> ;
- # referenceContext need to be of the same type
- owl:equivalentClass [
- a owl:Restriction ;
- owl:onProperty <referenceContext> ;
- owl:allValuesFrom <rfc5147Selection>
- ] .
-
+ rdfs:definedBy <> .
+
+<rfc5147ExtendedSelection> a owl:Class ;
+ rdfs:label "This class contains some necessary extensions for NIF 2.0 " ;
+ rdfs:subClassOf <rfc5147Selection> ;
+ rdfs:seeAlso <
http://nlp2rdf.org/nif-2-0-draft> ;
+ rdfs:definedBy <> .
<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
<
http://tools.ietf.org/html/draft-hausenblas-csv-fragment-00> ;
- # referenceContext need to be of the same type
- owl:equivalentClass [
- a owl:Restriction ;
- owl:onProperty <referenceContext> ;
- owl:allValuesFrom <draft-hausenblas-csv-fragment-00Selection>
- ] .
+ rdfs:definedBy <> .
-[] a owl:AllDisjointClasses ;
- owl:members <rfc5147Selection>,
<draft-hausenblas-csv-fragment-00Selection> ;
-#### properties
-<referenceContext> a owl:FunctionalProperty .
-<mediatype> a owl:FunctionalProperty .
+#### Object properties
+<referenceContext> a owl:ObjectProperty .
+<mediatype> a owl:ObjectProperty .
+
+#### Object properties
+<anchorOf> a owl:DatatypeProperty .
+<beginIndex> a owl:DatatypeProperty .
+<endIndex> a owl:DatatypeProperty .
+#### example
+<
http://nlp2rdf.lod2.eu/usecases/plaintext.txt#char=0,>
+ a <rfc5147Selection> ;
+ <beginIndex> "0"^^xsd:int ;
+ <endIndex> "1765"^^xsd:int ;
+ referenceContext
<
http://nlp2rdf.lod2.eu/usecases/plaintext.txt#char=0,> .
+
+
+
+<
http://nlp2rdf.lod2.eu/usecases/plaintext.txt#char=0,6> a
<rfc5147Selection> ;
+ <beginIndex> "0"^^xsd:int ;
+ <endIndex> "6"^^xsd:int ;
+ <anchorOf> "Mexico" ;
+ <referenceContext>
<
http://nlp2rdf.lod2.eu/usecases/plaintext.txt#char=0,> .
+
+# 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.
+Espinosa, in an interview yesterday, said both U.S. President Barack Obama
and Secretary of State Hillary Clinton promised to disburse $500 million
this year in equipment and aid for police training as part of the bilateral
Merida Initiative. Mexico expects to receive complete financing of the
multi-year program by next year, she said.
+"We got off to a slow start in part because this is a completely new
cooperation plan," Espinosa, 52, said at Bloomberg's offices in Mexico
City. "We now see that it's advancing more quickly."
+(It would boring without special characters such as äöüßéèâä) .
+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. """.
-
-
+