【问题标题】:How to use own ontology to classify dbpedia terms extracted with stanbol?如何使用自己的本体对用stanbol提取的dbpedia术语进行分类?
【发布时间】:2013-05-28 03:52:08
【问题描述】:

我正在尝试使用 Apache Stanbol 构建一个应用程序:

  1. 识别来自 DBpedia 的实体
  2. 使用 OWL 本体对这些实体进行分类,该本体扩展了这些实体的 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>
    

到目前为止,我能够使用 Stanbol Enhancer 从 DBpedia 中提取实体及其类别。但是我无法弄清楚我必须在哪里集成我的本体才能对这些实体进行分类?我的最终目标是创建一个反映层次结构的 JSON 文档:OwnClass ⇒ DBpedia 类别 ⇒ 实体。 Stanbol 是否可以做到这一点,如果可以,我该如何实现?

【问题讨论】:

    标签: nlp ontology owl dbpedia apache-stanbol


    【解决方案1】:

    在您的配置文件中使用existing indices 之一:

    # --- 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
    

    【讨论】:

    • dbpedia 下载中的哪个 ttl 文件具有 #person 类型属性?
    猜你喜欢
    • 1970-01-01
    • 2020-10-24
    • 1970-01-01
    • 2013-07-06
    • 2012-02-07
    • 2020-01-12
    • 2017-05-21
    • 2023-04-06
    • 1970-01-01
    相关资源
    最近更新 更多