Ontologies / nif
NLP Interchange Format
Original text (English), from: LOV catalogueThe NLP Interchange Format (NIF) is an RDF/OWL-based format that aims to achieve interoperability between Natural Language Processing (NLP) tools, language resources and annotations.
- Namespace IRI
- http://persistence.uni-leipzig.org/nlp2rdf/ontologies/nif-core#
- Type
- Vocabulary
- Version
- Versioning done on resource level. See https://github.com/NLP2RDF/ontologies/blob/master/nif-core/nif-core.ttl
- Licence statement
- This ontology is licensed under Apache 2.0 (http://www.apache.org/licenses/LICEN (definition file)
- Standard or contact
- Not registered
- Definition file check
- File parsed · Nov 30, 2026 UTC
- Collected from
- Linked Open Vocabularies (LOV)
At a glance
Derived from the parsed definition file, not written by an editor.
- Classes
- 20
- Properties
- 52
- Triples in file
- 468
- Connections
- 7
- Papers and standards
- 0
Counted as stated directly in the definition file, within its own namespace, without imports or inference. The file also declares 0 terms from other namespaces.
Central classes
The classes with the most subclass and property links.
Top of the hierarchy
Classes with subclasses but no parent inside this file.
What it lets you say
Properties read as domain, property, range.
- StringinterString
- Stringreference contextContext
- SentencepreviousSentenceSentence
- Sentencehas wordWord
- WordpreviousWordTransWord
- StringtopicAnnotation
- StructuresentenceSentence
- Contextbroader ContextContext
Class hierarchy
Open a class to follow its subclasses downward. The number is how many direct subclasses it has.
String3
Structure5
- Paragraph
- Phrase
- Sentence
- Title
- Word
URI Scheme2
Consecutive String3
- Consecutive String Instantiation
- Offset-based String
- RFC 5147 String
- Context Hash Based String
- Context
Class graph
Select a class to read its original definition and the properties attached to it. Drag to move, scroll to zoom.
subclass of (child to parent)property (domain to range)
All 20 classes
| Term | Original definition |
|---|---|
| String nif:String | Individuals of this class are a string, i.e. Unicode characters, who have been given a URI and are used in the subject of an RDF statement. This class is abstract and should not be serialized. NIF-Stanbol (nif-stanbol.ttl): subclassOf nifs:Annotation because it "annotates" strings for example with begin and end index. |
| Sentence nif:Sentence | A sentence. Changelog: * 0.1.1 fixed spelling, added language tag |
| Word nif:Word | The Word class represents strings that are tokens or words. A string is a Word, if it is a word. We don't nitpic about whether it is a a pronoun, a name, a punctuation mark or an apostrophe or whether it is separated by white space from another Word or something else. The string 'He enters the room.' for example has 5 |
| Context nif:Context | The string that serves as a context for its substrings. The Unicode String given in the nif:isString property must be used to calculate the begin and endIndex for all nif:Strings that have a nif:referenceContext property to this URI. For further information, see http://svn.aksw.org/papers/2013/ISWC_NIF/public.pdf Chang |
| Structure nif:Structure | A structure is a more or less arbitrary label for a partitioning of a string. We do not follow a strict approach for what a word, phrase, sentence, title, paragraph is. These labels enable the definition processes for tool chains, e.g. tool analyses nif:Paragraph and calculates term frequency. This is an abstract class |
| Consecutive String nif:CString | A URI Scheme for NIF which is able to refer to a single, consecutive string in a context. Note that any scheme subclassing this class, requires the existence of beginIndex, endIndex and referenceContext . This is an abstract class and should not be serialized. |
| URI Scheme nif:URIScheme | A URI Scheme for NIF, subclasses need to define guidelines on the URI Scheme as well as the text it refers to. This class is just to keep some order, and should not be serialized. This is an abstract class and should not be serialized. Changelog: * 0.1.1 changed comment |
| Annotation nif:Annotation | Individuals of this class are annotations of strings. This class can be used if an annotation statement has to be annotated with further information, like confidence or annotation provenance (like which tool produced the annotation). Changelog: * 0.0.1 initial commit of class |
| RFC 5147 String nif:RFC5147String | cf. http://tools.ietf.org/html/rfc5147 URIs of this class have to conform with the syntax of RFC 5147 in a way that the end on a valid identifier, if you remove the prefix. Note that unlike RFC 5147 NIF does not requrire '#' URIs. So valid URIs are http://example.org#char=0,28 , http://example.org/whatever/char=0,28 , |
| Context Collection nif:ContextCollection | A collection of contexts used to create an unordered set of context via the nif:hasContext property. This can be compared to a document collection, but here it is a collection of nif:Context and therefore a collection of annotated strings, not documents. Open Issues Investigate ordered collections Changelog * 0.1.1 imp |
| Paragraph nif:Paragraph | A paragraph. Changelog: * 0.1.1 fixed spelling, added language tag |
| Context Hash Based String nif:ContextHashBasedString | cf. https://www.google.de/search?q=Linked-Data+Aware+URI+Schemes+for+Referencing+Text |
| Phrase nif:Phrase | A nif:Phrase can be a nif:String, that is a chunk of several words or a word itself (e.g. a NounPhrase as a Named Entity). The term is underspecified and can be compatible with many defintitions of phrase. Please subClass it to specify the meaning (e.g. for Chunking or Phrase Structure Grammar). Example: ((My dog)(also |
| Title nif:Title | A title within a text. Changelog: * 0.1.1 fixed spelling, added language tag |
| Consecutive String Instantiation nif:CStringInst | An abitrary URI (e.g. a URN) for an arbitrary string of the context. This is roughly the same as TextAnnotations are currently implemented in Stanbol. |
| Offset-based String nif:OffsetBasedString | cf. Linked-Data Aware URI Schemes for Referencing Text Fragments by Sebastian Hellmann, Jens Lehmann und Sören Auer in EKAW 2012 http://jens-lehmann.org/files/2012/ekaw_nif.pdf requires the existence of begin, endIndex and referenceContext Changelog: * 1.0.0 originally a plain text string was attached to this uri schem |
| ContextOccurrence nif:ContextOccurrence | Not registered |
| NormalizedContextOccurrence nif:NormalizedContextOccurrence | Not registered |
| CollectionOccurrence nif:CollectionOccurrence | Not registered |
| NormalizedCollectionOccurrence nif:NormalizedCollectionOccurrence | Not registered |
All 52 properties
| Term | Original definition |
|---|---|
| before nif:before | For each string you can include a snippet (e.g. 10-40 characters of text), that occurs immediately before the subject string. |
| inter nif:inter | This object property models a relation between two nif:Strings. The name "inter" is kept generic and can be used to express any kind of relation in between (inter) two nif:Strings. Extensions can create rdfs:subPropertyOf for "head", "dependent", nif:substring and nif:nextWord. Changelog: * 0.1.0 initial commit of prop |
| Part of speech tag nif:posTag | 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 |
| previousWordTrans nif:previousWordTrans | see nif:nextSentence |
| end index nif:endIndex | 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" |
| head nif:head | The first few chars of the nif:anchorOf. Typically used if the nif:anchorOf is to long for inclusion as RDF literal. |
| sentiment value nif:sentimentValue | Between -1 negative and 1 positive |
| dependency nif:dependency | A dependency relation pointing from gov to dep. Changelog: * 0.1.0 initial commit of property "dependency" * 0.1.1 made the property subproperty of dependencyTrans |
| previousSentence nif:previousSentence | see nif:nextSentence |
| broader Context nif:broaderContext | This property should be used to express that one Context is contained in another Context, e.g. several sentences of a document are modelled indivudally and refer to the broader context of the whole document. |
| Confidence of OLiA tag nif:oliaConf | 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 |
| stem nif:stem | The stem(s) of the nif:String. |
| nextWord nif:nextWord | see nif:nextSentence |
| most specific class reference nif:taMsClassRef | This property marks the most specific class from itsrdf:taClassRef. The rule is: from the set S of itsrdf:taClassRef attached to this resource taMscRef points to the one that does not have any subclasses in the set S except itself. So if taClassRef is owl:Thing, dbo:Agent, dbo:Person, dbp:Actor taMsClassRef is dbo:Acto |
| lemma nif:lemma | The lemma(s) of the nif:String. |
| language of the string nif:lang | Defines the language of a substring of the context. If the language for the nif:Context should be specified, nif:predominantLanguage must be used. see nif:predominantLanguage for more info. |
| Provenance of OLiA tag nif:oliaProv | Links to the URI describing the provenance |
| previousSentenceTrans nif:previousSentenceTrans | see nif:nextSentence |
| literalAnnotation nif: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 |
| transitive version of subString nif:subStringTrans | transitive version of subString Inferences (nif-core-inf.ttl): Transitive definition kept in a different ontology Changelog: * 0.1.0: Initial version * 0.1.1: merged inf |
| nextSentenceTrans nif:nextSentenceTrans | see nif:nextSentence |
| transitive version of dependency nif:dependencyTrans | Changelog: * 0.1.0 initial commit of property * 0.1.1 merged inf model |
| category nif:category | A simple annotation for machine learning purposes. The object can be anything, e.g. the literal "A. PRESS: Reportage" from Brown or any URI. ChangeLog: * 0.2.0 changed nif:class to nif:category due to conflict with Java |
| super String nif:superString | see nif:subString |
| source URL nif:sourceUrl | The URL the context was extracted from, e.g. the blog or news article url. Doesn't matter whether it is HTML or XML or plain text. rdfs:range is foaf:Document. Subproperty of prov:hadPrimarySource. In case the string comes from another NIF String and gives the exact provenance, please use nif:wasConvertedFrom or a subP |
| annotation nif:annotation | 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 |
| begin index nif:beginIndex | 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 "M |
| OLiA link nif:oliaLink | This property links a string to a URI from one of the OLiA Annotation model, e.g. http://purl.org/olia/penn.owl#NNP Changelog 0.1.1 - added subproperty of nif:annotation as per http://svn.aksw.org/papers/2012/PeoplesWeb/public_preprint.pdf page 21 |
| sub string nif:subString | This property together with nif:subString, nif:superString, and their transitive extension can be used to express that one string is contained in another one. Examples: "a" nif:subString "apple" , "apple" nif:subString "apple". The transitivity axioms are included in nif-core-inf.ttl and need to be included separately |
| opinion nif:opinion | This property is used to link to a marl:Opinion. We have not investigated marl, so it might be replaced. http://marl.gi2mo.org/?page_id=1#overview . InverseOf marl:extractedFrom |
| narrower Context nif:narrowerContext | The inverse of nif:narrowerContext |
| has word nif:word | This property links sentences to their words. |
| was converted from nif:wasConvertedFrom | This property should be used, when mapping one nif:String or nif:Context to another and is often confused with nif:sourceUrl. While nif:sourceUrl is built on PROV-O and is used to link the nif:Context to the document URL for provenance information, nif:convertedFrom is more precise and pinpoints exact locations where a |
| confidence of annotation nif:confidence | The confidence of an annotation as decimal between 0 and 1 Changelog: * 0.0.1 initial commit of property |
| keyword nif:keyword | A general keyword associated with a string Changelog: * 0.0.1 initial commit of property |
| OLiA Category nif:oliaCategory | This property links a string URI to classes of the OLiA Reference model. It provides a direct link for querying, thus it is a redundant optimization. Changelog: 0.1.1 - added subproperty of nif:classAnnotation as per http://svn.aksw.org/papers/2012/PeoplesWeb/public_preprint.pdf page 21 0.1.2 - removed domain axiom fo |
| has first word nif:firstWord | This property links sentences to their first word. Changelog: * 0.1.1 merged inf+val |
| classAnnotation nif:classAnnotation | see Towards Web-Scale Collaborative Knowledge Extraction http://svn.aksw.org/papers/2012/PeoplesWeb/public_preprint.pdf page 12 . Changelog: * 0.1.1 Fixed page number |
| anchor of nif:anchorOf | 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. |
| predominant language nif:predLang | Defines the predominant language of the text. If this annotation is given on a nif:Context, all NIF tools have to treat the text to be in this language unless specified differently for a subpart. To change the language for a smaller substring nif:lang must be used. This property requires a uri as an argument. We expect |
| topic nif:topic | The topic of a string Changelog: * 0.0.1 initial commit of property |
| transitive version of superString nif:superStringTrans | see nif:subStringTrans |
| after nif:after | For each string you can include a snippet (e.g. 10-40 characters of text), that occurs immediately after the subject string. |
| dependency relation type nif:dependencyRelationType | String denoting the kind of dependency relation |
| previousWord nif:previousWord | see nif:nextSentence |
| nextWordTrans nif:nextWordTrans | see nif:nextSentence |
| sentence nif:sentence | This property links words and other structures to their sentence. Changelog: * 0.2.0 Changed domain from nif:Word to nif:Structure, not longer inverseOf nif:word |
| has last word nif:lastWord | This property links sentences to their last word. Changelog: * 0.1.1 fixed label * 0.1.2 merged inf+val |
| nextSentence nif:nextSentence | This property (and nif:previousSentence, nif:nextWord, nif:previousWord and their transitive extension) can be used to make resources of nif:Sentence and nif:Word traversable, it can not be assumed that no gaps or whitespaces between sentences or words exist, i.e. string adjacency is not mandatory. The transitivity axi |
| has context nif:hasContext | Links a nif:ContextCollection to its contexts. Changelog * 0.2.0. renamed property since a lot of people where too confused by nif:context |
| is string nif:isString | The reference text as rdf:Literal for this nif:Context resource. NIF requires that the reference text (i.e. the context) is always included in the RDF 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 |
| reference context nif:referenceContext | Links a URI of a string to its reference context of type nif:Context. The reference context determines the calculation of begin and end index Each String that is not an instance of nif:Context MUST have exactly one reference context. Inferences (nif-core-inf.ttl): Instances of nif:Context do have itself as reference co |
Connections
Relations stated in a definition file or an official registry. Each row shows where the statement comes from.
What this ontology builds on 7
What builds on this ontology 0
None
Ontology with a stated relationPaper or standardRepositorySimilarity candidate (computed)
Show the evidence table (7 rows)
| Direction | Ontology | Relation | Evidence |
|---|---|---|---|
| This → other | The RDF Concepts Vocabulary | reuses terms (4 terms) | definition file type, first, rest |
| This → other | XML Schema | reuses terms (3 terms) | definition file string, nonNegativeInteger, decimal |
| This → other | Dublin Core Metadata Element Set | reuses terms (5 terms) | definition file contributor, creator, description |
| This → other | DCMI Metadata Terms | reuses terms (2 terms) | definition file license, title |
| This → other | VANN: A vocabulary for annotating vocabulary descriptions | reuses terms (3 terms) | definition file changes, preferredNamespacePrefix, preferredNamespaceUri |
| This → other | Lexvo.org Ontology | reuses terms (1 term) | definition file Language |
| This → other | PROV-O: The PROV Ontology | reuses terms (2 terms) | definition file hadPrimarySource, wasDerivedFrom |
Similarity candidates
Candidates are ranked by shared words in descriptions and term labels. They are a starting point for your own check, not a statement of equivalence, compatibility or official relation.
Similar ontologies
- 0.18Compare
- 0.17Compare
- 0.12Compare
- WorldAvatar changelog ontologyworldavatar.changelog
Shared words: changelog, commit, hash, changed, paper · Repository0.12Compare - 0.12Compare
- 0.10Compare
- SKOS Simple Knowledge Organization Systemskos
Shared words: transitive, narrower, scheme, broader, confidence0.10Compare - 0.09Compare
Similar papers and standards
- The Confidence Information Ontology: a step towards a standard for asserting confidence in annotations
Shared words: confidence, annotation0.08
Papers and standards
No paper or standard is linked yet. A missing paper is not a defect: an official specification can serve as evidence.
Files and repository
| File | Format | Location |
|---|---|---|
| LOV archived version | Turtle | https://lov.linkeddata.es/dataset/lov/vocabs/nif/versions/2015-01-11.n3 |
Check record
- Fetch fileDone
- Parse RDFDone
- Extract termsDone
A parsed file means it could be read. It does not vouch for logical consistency or modelling quality.
- Definition file check
- File parsed
- Checked at
- Nov 30, 2026 UTC
- Format
- Turtle
- Parser
- n3
- Size
- 43,788 B
- SHA-256
- 208619e2593f36675869f1afe200d19b12161c3d0677a8e2c89c4e3ca41b12d6
- Note
- This is the latest version archived by LOV, not a file fetched from the publisher.