简体   繁体   English

如何使用自己的本体对用stanbol提取的dbpedia术语进行分类?

[英]How to use own ontology to classify dbpedia terms extracted with stanbol?

I am trying to build an application using Apache Stanbol which: 我正在尝试使用Apache Stanbol构建应用程序:

  1. recognizes entities from DBpedia 识别来自DBpedia的实体
  2. classifies these entities using an OWL ontology which extends the definition of the dcterms:subject of these entities to correspond to my custom OWL class, OwnClass : 使用OWL本体对这些实体进行分类,该本体扩展了dcterms:subject这些实体的dcterms:subject以对应于我的自定义OWL类OwnClass

     <owl:Class rdf:ID="OwnClass"> </owl:Class> <rdf:Description rdf:about="http://dbpedia.org/resource/Category:Branding"> <rdf:type rdf:resource="#OwnClass"/> </rdf:Description> 

So far I am able to extract the entities with their categories from DBpedia using the Stanbol Enhancer. 到目前为止,我已经能够使用Stanbol Enhancer从DBpedia中提取实体及其类别。 But I cannot figure out where I have to integrate my ontology in order to classify these entities? 但是我无法弄清楚必须对本体进行集成以对这些实体进行分类吗? My final goal is to have a JSON document reflecting the hierarchy: OwnClass ⇒ DBpedia category ⇒ entity. 我的最终目标是拥有一个反映层次结构的JSON文档: OwnClass类别⇒实体。 Is this possible with Stanbol and, if yes, how can I achieve this? Stanbol可以实现吗?如果可以,我如何实现呢?

Use one of the existing indices in your configuration file: 使用配置文件中的现有索引之一:

# --- dbpedia specific
# the "dbp-ont" defines knowledge mapped to the DBPedia ontology
dbp-ont:*

#place typed properties
#dbp-ont:country
#dbp-ont:largestCity
#dbp-ont:city
#dbp-ont:state
#dbp-ont:capital
#dbp-ont:isPartOf
#dbp-ont:part
#dbp-ont:deathPlace
#dbp-ont:birthPlace
#dbp-ont:location

#person typed properties
#dbp-ont:leader
#dbp-ont:leaderName
#dbp-ont:child
#dbp-ont:spouse
#dbp-ont:partner
#dbp-ont:president

#organization typed properties
#dbp-ont:leaderParty
#dbp-ont:affiliation
#dbp-ont:team
#dbp-ont:otherParty
#dbp-ont:associatedBand

dbp-ont:birthDate | d=xsd:dateTime
dbp-ont:deathDate | d=xsd:dateTime
dbp-ont:populationTotal | d=xsd:long
dbp-ont:wikiPageExternalLink | d=xsd:anyURI
dbpedia-owl:areaTotal | d=xsd:double

# the "DBpedia properties are all key values pairs extracted from the info boxes
# on the right hand side of Wikipedia pages.
# Data Quality is to low to use them efficiently
#dbp-prop:*

# Copy only population for now (one could add additional if necessary)!
# use dbp-ont:populationTotal instead
# dbp-prop:population | d=xsd:long

#Deactivated mappings based on dbprops
#dbp-prop:latitude | d=xsd:double > geo:lat
#dbp-prop:longitude | d=xsd:double > geo:long
#dbp-prop:elevation | d=xsd:int;xsd:float > geo:alt
#dbp-prop:website | d=xsd:anyURI > foaf:homepage

dbp-prop:imageCaption
dbp-prop:region
dbp-prop:governor
dbp-prop:capital
dbp-prop:largestCity
dbp-prop:leaderName
dbp-prop:knownFor
dbp-prop:placeOfBirth
dbp-prop:workInstitutions
dbp-prop:caption
dbp-prop:shortDescription

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用DBpedia属性构建主题层次结构? - How to use DBpedia properties to build a topic hierarchy? 如何使用scikit-learn使用标签对文本进行分类? - How to use labels to classify text with scikit-learn? 如何使用单词袋或tf-idf对文本进行分类 - How to use bag of words or tf-idf to classify text 如何将单词分类到相应的类别? - How to classify words to their correspoding categories? NLP-使用哪种技术对段落标签进行分类? - NLP - which technique to use to classify labels of a paragraph? 我想根据句子的语义对它们进行分类,如何在其中使用Doc2Vec? 还是有比这更好的方法? - I want to classify some sentences on the basis of their semantic meaning.How can I use Doc2Vec in this? Or is there a better approach than this? 如何根据内容对与圣经相关的文本进行分类 - How to classify texts that are related to the bible based on their content 如何使用已经训练过的 model 对记录进行分类? - How to classify records using already trained model? 如何在python 3中分类大量文本? - How to classify a very large amount of text in python 3? 如何根据常用词对文本进行分类 - How to Classify text based on common words
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM