/******************************************************************************/ /* Copyright (C) 2010-2011, Sebastian Hellmann */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); */ /* you may not use this file except in compliance with the License. */ /* You may obtain a copy of the License at */ /* */ /* http://www.apache.org/licenses/LICENSE-2.0 */ /* */ /* Unless required by applicable law or agreed to in writing, software */ /* distributed under the License is distributed on an "AS IS" BASIS, */ /* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ /* See the License for the specific language governing permissions and */ /* limitations under the License. */ /******************************************************************************/ package org.nlp2rdf.core.vocab; import com.hp.hpl.jena.ontology.DatatypeProperty; import com.hp.hpl.jena.ontology.OntModel; /** * This class was automatically generated from http://persistence.uni-leipzig.org/nlp2rdf/ontologies/nif-core# * @author croeder * */ public enum NIFDatatypeProperties { /** * Part of speech tag -> To include the pos tag as it comes out of the NLP tool as RDF Literal. This property is discouraged to use alone, please use oliaLink and oliaCategory. We included it, because some people might still want it and will even create their own property, if the string variant is missing */ posTag, /** * lemma -> The lemma(s) of the nif:String. */ lemma, /** * begin index -> The begin index of a character range as defined in http://tools.ietf.org/html/rfc5147#section-2.2.1 and http://tools.ietf.org/html/rfc5147#section-2.2.2, measured as the gap between two characters, starting to count from 0 (the position before the first character of a text). Example: Index "2" is the postion between "Mr" and "." in "Mr. Sandman". Note: RFC 5147 is re-used for the definition of character ranges. RFC 5147 is assuming a text/plain MIME type. NIF builds upon Unicode and is content agnostic. Requirement (1): This property has the same value the "Character position" of RFC 5147 and it MUST therefore be castable to xsd:nonNegativeInteger, i.e. it MUST not have negative values. Requirement (2): The index of the subject string MUST be calculated relative to the nif:referenceContext of the subject. If available, this is the rdf:Literal of the nif:isString property. Changelog: * 1.0.0: Introduced stable version. */ beginIndex, /** * sentiment value -> Between -1 negative and 1 positive */ sentimentValue, /** * end index -> The end index of a character range as defined in http://tools.ietf.org/html/rfc5147#section-2.2.1 and http://tools.ietf.org/html/rfc5147#section-2.2.2, measured as the gap between two characters, starting to count from 0 (the position before the first character of a text). Example: Index "2" is the postion between "Mr" and "." in "Mr. Sandman". Note: RFC 5147 is re-used for the definition of character ranges. RFC 5147 is assuming a text/plain MIME type. NIF builds upon Unicode and is content agnostic. Requirement (1): This property has the same value the "Character position" of RFC 5147 and it must therefore be an xsd:nonNegativeInteger . Requirement (2): The index of the subject string MUST be calculated relative to the nif:referenceContext of the subject. If available, this is the rdf:Literal of the nif:isString property. */ endIndex, /** * Confidence of OLiA tag -> The confidence is relative to the tool and can be between 0.0 and 1.0, it is for nif:oliaLink and therefore also for nif:oliaCategory. Changelog: 0.2.0 merged confidence for category and link */ oliaConf, /** * stem -> The stem(s) of the nif:String. */ stem, /** * before -> For each string you can include a snippet (e.g. 10-40 characters of text), that occurs immediately before the subject string. */ before, /** * literalAnnotation -> see Towards Web-Scale Collaborative Knowledge Extraction http://svn.aksw.org/papers/2012/PeoplesWeb/public_preprint.pdf‎ page 21 . Changelog: * 0.1.1 Fixed page number */ literalAnnotation, /** * anchor of -> The string, which the URI is representing as an RDF Literal. Some use cases require this property, as it is necessary for certain sparql queries. */ anchorOf, /** * head -> The first few chars of the nif:anchorOf. Typically used if the nif:anchorOf is to long for inclusion as RDF literal. */ head, /** * after -> For each string you can include a snippet (e.g. 10-40 characters of text), that occurs immediately after the subject string. */ after, /** * is string -> The reference text as rdf:Literal for this nif:Context resource. NIF highly recommends to always include the reference text (i.e. the context) as an rdf:Literal. Note, that the isString property is *the* place to keep the string itself in RDF. All other nif:Strings and nif:URISchemes relate to the text of this property to calculate character position and indices. */ isString; String uri; NIFDatatypeProperties() { this.uri = "http://persistence.uni-leipzig.org/nlp2rdf/ontologies/nif-core#" + name(); } public String getUri() { return uri; } @Override public String toString() { return "nif:" + name(); } public DatatypeProperty getDatatypeProperty(OntModel model) { return model.createDatatypeProperty(getUri()); } }