分类法层次表示格式(Taxonomy hierarchy representation format)

我们计划在我们的软件解决方案中集成分层分类。 (基于Java)

是否有标准化(易于使用)的格式来表示分层分类法? 不同分类编辑使用的通用交换格式的格式?

我一直在关注OWL(RDF),PMML ......但是这些要么非常复杂,要么看起来并不适合这个目的。

举个简单的例子。 我们想代表一个概念树。 附在每个概念上会有某种数据对象(在括号中)

Vehicles (category := 'V') |-> Car (code := 1) | |-> Petrol (code := 2 && car_code := 'petrol') | |-> Electical (code := 2 && car_code := 'electrical') |-> Plane (code := 1)

我们可以使用像Xstream这样的序列化库来开发我们自己的XML格式。 但如果有一个很好的标准 - 这得到Java的良好支持,我宁愿使用它。

We are planning to integrate a hierarchical taxonomy in our software solution. (Java based)

Is there a standardized (and easy to use) format to represent hierarchical taxonomies? A format which would the common exchange format used by different taxonomy editors?

I have been looking at OWL (RDF), PMML... but those are either quite complex, or do not really seem be fit for this purpose.

To give a simple example. We would like to represent a tree of concepts. Attached to each concept there would be some kind of data object (in brackets)

Vehicles (category := 'V') |-> Car (code := 1) | |-> Petrol (code := 2 && car_code := 'petrol') | |-> Electical (code := 2 && car_code := 'electrical') |-> Plane (code := 1)

We could of develop our own XML format using a serialization library like Xstream. But if there is a good standard - which is well supported by Java, I would prefer to use it.

最满意答案

您正在寻找SKOS - 简单知识组织系统命名空间文档

SKOS是一种表示分类法,层次结构和词库的本体论。 它基于更广泛和更狭窄的属性的概念来陈述术语之间的关系。 例如:

ex:animals rdf:type skos:Concept; skos:prefLabel "animals"@en; skos:narrower ex:mammals. ex:mammals rdf:type skos:Concept; skos:prefLabel "mammals"@en; skos:broader ex:animals.

您可以使用SKOS表示分类,在RDF中序列化并在RDF数据库中断言。 要查询它并检索层次结构树,请使用SPARQL语言。

You are looking for SKOS - Simple Knowledge Organization System Namespace Document

SKOS is an ontology to represent taxonomies, hierarchies and thesaurus. It is based on the concept of broader and narrower properties to state relationships between terms. For instance:

ex:animals rdf:type skos:Concept; skos:prefLabel "animals"@en; skos:narrower ex:mammals. ex:mammals rdf:type skos:Concept; skos:prefLabel "mammals"@en; skos:broader ex:animals.

You can represent your taxonomy with SKOS, serialize in RDF and assert in a RDF database. To query it, and retrieve hierarchy trees, use the SPARQL language.

更多推荐