아파치 예나 또는 OWL API를 사용하는 방법이 있는지, 주어진 데이터 속성에 따라 온톨로지의 개인을 검색 한 다음 공통 객체의 해당 개인 들간의 관계를 일치시키는 방법이 있는지 궁금합니다. 속성.jena를 사용하여 주어진 데이터 속성에서 개인 얻기
편집 : 여기에 CSV의 샘플이
,California,Texas,New York,Alabama
Hillary Clinton,69%,31%,33%,67%
Donald Trump,31%,69%,67%,33%
파일입니다 그리고 이것은 피보호자로 만든 간단한 도메인 온톨로지입니다 :
<?xml version="1.0"?>
<rdf:RDF xmlns="http://www.kdm.com/OWL/elections2016#"
xml:base="http://www.kdm.com/OWL/elections2016"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:xml="http://www.w3.org/XML/1998/namespace"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:elections2016="http://www.kdm.com/OWL/elections2016#">
<owl:Ontology rdf:about="http://www.kdm.com/OWL/elections2016#"/>
<!--
///////////////////////////////////////////////////////////////////////////////////////
//
// Object Properties
//
///////////////////////////////////////////////////////////////////////////////////////
-->
<!-- http://www.kdm.com/OWL/elections2016#HasVote -->
<owl:ObjectProperty rdf:about="http://www.kdm.com/OWL/elections2016#HasVote">
<rdfs:domain rdf:resource="http://www.kdm.com/OWL/elections2016#Nominee_democratic"/>
<rdfs:domain rdf:resource="http://www.kdm.com/OWL/elections2016#Nominee_republic"/>
<rdfs:range rdf:resource="http://www.kdm.com/OWL/elections2016#Votes"/>
</owl:ObjectProperty>
<!-- http://www.kdm.com/OWL/elections2016#HasVoteByClasseSociale -->
<owl:ObjectProperty rdf:about="http://www.kdm.com/OWL/elections2016#HasVoteByClasseSociale">
<rdfs:subPropertyOf rdf:resource="http://www.kdm.com/OWL/elections2016#HasVote"/>
<rdfs:domain rdf:resource="http://www.kdm.com/OWL/elections2016#Nominee_democratic"/>
<rdfs:domain rdf:resource="http://www.kdm.com/OWL/elections2016#Nominee_republic"/>
<rdfs:range rdf:resource="http://www.kdm.com/OWL/elections2016#ClasseSociale"/>
</owl:ObjectProperty>
<!-- http://www.kdm.com/OWL/elections2016#HasVoteByPeriode -->
<owl:ObjectProperty rdf:about="http://www.kdm.com/OWL/elections2016#HasVoteByPeriode">
<rdfs:subPropertyOf rdf:resource="http://www.kdm.com/OWL/elections2016#HasVote"/>
<rdfs:domain rdf:resource="http://www.kdm.com/OWL/elections2016#Nominee_democratic"/>
<rdfs:domain rdf:resource="http://www.kdm.com/OWL/elections2016#Nominee_republic"/>
<rdfs:range rdf:resource="http://www.kdm.com/OWL/elections2016#Periode"/>
</owl:ObjectProperty>
<!-- http://www.kdm.com/OWL/elections2016#HasVoteByRegion -->
<owl:ObjectProperty rdf:about="http://www.kdm.com/OWL/elections2016#HasVoteByRegion">
<rdfs:subPropertyOf rdf:resource="http://www.kdm.com/OWL/elections2016#HasVote"/>
<rdfs:domain rdf:resource="http://www.kdm.com/OWL/elections2016#Nominee_democratic"/>
<rdfs:domain rdf:resource="http://www.kdm.com/OWL/elections2016#Nominee_republic"/>
<rdfs:range rdf:resource="http://www.kdm.com/OWL/elections2016#Region"/>
</owl:ObjectProperty>
<!-- http://www.kdm.com/OWL/elections2016#HasVoteByVotingAge -->
<owl:ObjectProperty rdf:about="http://www.kdm.com/OWL/elections2016#HasVoteByVotingAge">
<rdfs:subPropertyOf rdf:resource="http://www.kdm.com/OWL/elections2016#HasVote"/>
<rdfs:domain rdf:resource="http://www.kdm.com/OWL/elections2016#Nominee_democratic"/>
<rdfs:domain rdf:resource="http://www.kdm.com/OWL/elections2016#Nominee_republic"/>
<rdfs:range rdf:resource="http://www.kdm.com/OWL/elections2016#VotingAge"/>
</owl:ObjectProperty>
<!-- http://www.kdm.com/OWL/elections2016#hasNomineeDemocratic -->
<owl:ObjectProperty rdf:about="http://www.kdm.com/OWL/elections2016#hasNomineeDemocratic">
<rdfs:domain rdf:resource="http://www.kdm.com/OWL/elections2016#Republic"/>
<rdfs:range rdf:resource="http://www.kdm.com/OWL/elections2016#Nominee_republic"/>
</owl:ObjectProperty>
<!-- http://www.kdm.com/OWL/elections2016#hasNomineeRepublic -->
<owl:ObjectProperty rdf:about="http://www.kdm.com/OWL/elections2016#hasNomineeRepublic">
<rdfs:domain rdf:resource="http://www.kdm.com/OWL/elections2016#Democratic"/>
<rdfs:range rdf:resource="http://www.kdm.com/OWL/elections2016#Nominee_democratic"/>
</owl:ObjectProperty>
<!-- http://www.kdm.com/OWL/elections2016#hasPartone -->
<owl:ObjectProperty rdf:about="http://www.kdm.com/OWL/elections2016#hasPartone">
<rdfs:domain rdf:resource="http://www.kdm.com/OWL/elections2016#Political_parties"/>
<rdfs:range rdf:resource="http://www.kdm.com/OWL/elections2016#Democratic"/>
</owl:ObjectProperty>
<!-- http://www.kdm.com/OWL/elections2016#haspartytwo -->
<owl:ObjectProperty rdf:about="http://www.kdm.com/OWL/elections2016#haspartytwo">
<rdfs:domain rdf:resource="http://www.kdm.com/OWL/elections2016#Republic"/>
<rdfs:range rdf:resource="http://www.kdm.com/OWL/elections2016#Nominee_republic"/>
</owl:ObjectProperty>
<!--
///////////////////////////////////////////////////////////////////////////////////////
//
// Data properties
//
///////////////////////////////////////////////////////////////////////////////////////
-->
<!-- http://www.kdm.com/OWL/elections2016#age -->
<owl:DatatypeProperty rdf:about="http://www.kdm.com/OWL/elections2016#age"/>
<!-- http://www.kdm.com/OWL/elections2016#asset -->
<owl:DatatypeProperty rdf:about="http://www.kdm.com/OWL/elections2016#asset"/>
<!-- http://www.kdm.com/OWL/elections2016#currentLocation -->
<owl:DatatypeProperty rdf:about="http://www.kdm.com/OWL/elections2016#currentLocation"/>
<!-- http://www.kdm.com/OWL/elections2016#name -->
<owl:DatatypeProperty rdf:about="http://www.kdm.com/OWL/elections2016#name"/>
<!-- http://www.kdm.com/OWL/elections2016#occupation -->
<owl:DatatypeProperty rdf:about="http://www.kdm.com/OWL/elections2016#occupation"/>
<!-- http://www.kdm.com/OWL/elections2016#spouse -->
<owl:DatatypeProperty rdf:about="http://www.kdm.com/OWL/elections2016#spouse"/>
<!--
///////////////////////////////////////////////////////////////////////////////////////
//
// Classes
//
///////////////////////////////////////////////////////////////////////////////////////
-->
<!-- http://www.kdm.com/OWL/elections2016#ClasseSociale -->
<owl:Class rdf:about="http://www.kdm.com/OWL/elections2016#ClasseSociale">
<rdfs:subClassOf rdf:resource="http://www.kdm.com/OWL/elections2016#Votes"/>
</owl:Class>
<!-- http://www.kdm.com/OWL/elections2016#Democratic -->
<owl:Class rdf:about="http://www.kdm.com/OWL/elections2016#Democratic">
<rdfs:subClassOf rdf:resource="http://www.kdm.com/OWL/elections2016#Political_parties"/>
</owl:Class>
<!-- http://www.kdm.com/OWL/elections2016#Nominee_democratic -->
<owl:Class rdf:about="http://www.kdm.com/OWL/elections2016#Nominee_democratic">
<rdfs:subClassOf rdf:resource="http://www.kdm.com/OWL/elections2016#Democratic"/>
</owl:Class>
<!-- http://www.kdm.com/OWL/elections2016#Nominee_republic -->
<owl:Class rdf:about="http://www.kdm.com/OWL/elections2016#Nominee_republic">
<rdfs:subClassOf rdf:resource="http://www.kdm.com/OWL/elections2016#Republic"/>
</owl:Class>
<!-- http://www.kdm.com/OWL/elections2016#Periode -->
<owl:Class rdf:about="http://www.kdm.com/OWL/elections2016#Periode">
<rdfs:subClassOf rdf:resource="http://www.kdm.com/OWL/elections2016#Votes"/>
</owl:Class>
<!-- http://www.kdm.com/OWL/elections2016#Political_parties -->
<owl:Class rdf:about="http://www.kdm.com/OWL/elections2016#Political_parties"/>
<!-- http://www.kdm.com/OWL/elections2016#Region -->
<owl:Class rdf:about="http://www.kdm.com/OWL/elections2016#Region">
<rdfs:subClassOf rdf:resource="http://www.kdm.com/OWL/elections2016#Votes"/>
</owl:Class>
<!-- http://www.kdm.com/OWL/elections2016#Republic -->
<owl:Class rdf:about="http://www.kdm.com/OWL/elections2016#Republic">
<rdfs:subClassOf rdf:resource="http://www.kdm.com/OWL/elections2016#Political_parties"/>
</owl:Class>
<!-- http://www.kdm.com/OWL/elections2016#Votes -->
<owl:Class rdf:about="http://www.kdm.com/OWL/elections2016#Votes"/>
<!-- http://www.kdm.com/OWL/elections2016#VotingAge -->
<owl:Class rdf:about="http://www.kdm.com/OWL/elections2016#VotingAge">
<rdfs:subClassOf rdf:resource="http://www.kdm.com/OWL/elections2016#Votes"/>
</owl:Class>
<!--
///////////////////////////////////////////////////////////////////////////////////////
//
// Individuals
//
///////////////////////////////////////////////////////////////////////////////////////
-->
<!-- http://www.kdm.com/OWL/elections2016#Alabama -->
<owl:NamedIndividual rdf:about="http://www.kdm.com/OWL/elections2016#Alabama">
<rdf:type rdf:resource="http://www.kdm.com/OWL/elections2016#Region"/>
</owl:NamedIndividual>
<!-- http://www.kdm.com/OWL/elections2016#April -->
<owl:NamedIndividual rdf:about="http://www.kdm.com/OWL/elections2016#April">
<rdf:type rdf:resource="http://www.kdm.com/OWL/elections2016#Periode"/>
</owl:NamedIndividual>
<!-- http://www.kdm.com/OWL/elections2016#August -->
<owl:NamedIndividual rdf:about="http://www.kdm.com/OWL/elections2016#August">
<rdf:type rdf:resource="http://www.kdm.com/OWL/elections2016#Periode"/>
</owl:NamedIndividual>
<!-- http://www.kdm.com/OWL/elections2016#Between_18_and_49 -->
<owl:NamedIndividual rdf:about="http://www.kdm.com/OWL/elections2016#Between_18_and_49">
<rdf:type rdf:resource="http://www.kdm.com/OWL/elections2016#VotingAge"/>
</owl:NamedIndividual>
<!-- http://www.kdm.com/OWL/elections2016#December -->
<owl:NamedIndividual rdf:about="http://www.kdm.com/OWL/elections2016#December">
<rdf:type rdf:resource="http://www.kdm.com/OWL/elections2016#Periode"/>
</owl:NamedIndividual>
<!-- http://www.kdm.com/OWL/elections2016#DemocraticNominee -->
<owl:NamedIndividual rdf:about="http://www.kdm.com/OWL/elections2016#DemocraticNominee">
<rdf:type rdf:resource="http://www.kdm.com/OWL/elections2016#Democratic"/>
<name>HillaryClinton</name>
</owl:NamedIndividual>
<!-- http://www.kdm.com/OWL/elections2016#DonaldTrump -->
<owl:NamedIndividual rdf:about="http://www.kdm.com/OWL/elections2016#DonaldTrump">
<rdf:type rdf:resource="http://www.kdm.com/OWL/elections2016#Nominee_republic"/>
<age rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">70</age>
<asset>4,500,000,000</asset>
<currentLocation>NewYork</currentLocation>
<occupation>Businessman</occupation>
<occupation>MelaniaKnauss</occupation>
</owl:NamedIndividual>
<!-- http://www.kdm.com/OWL/elections2016#Etudiant -->
<owl:NamedIndividual rdf:about="http://www.kdm.com/OWL/elections2016#Etudiant">
<rdf:type rdf:resource="http://www.kdm.com/OWL/elections2016#ClasseSociale"/>
</owl:NamedIndividual>
<!-- http://www.kdm.com/OWL/elections2016#February -->
<owl:NamedIndividual rdf:about="http://www.kdm.com/OWL/elections2016#February">
<rdf:type rdf:resource="http://www.kdm.com/OWL/elections2016#Periode"/>
</owl:NamedIndividual>
<!-- http://www.kdm.com/OWL/elections2016#HillaryClinton -->
<owl:NamedIndividual rdf:about="http://www.kdm.com/OWL/elections2016#HillaryClinton">
<rdf:type rdf:resource="http://www.kdm.com/OWL/elections2016#Nominee_democratic"/>
<currentLocation>chicago</currentLocation>
</owl:NamedIndividual>
<!-- http://www.kdm.com/OWL/elections2016#Ingenieur -->
<owl:NamedIndividual rdf:about="http://www.kdm.com/OWL/elections2016#Ingenieur">
<rdf:type rdf:resource="http://www.kdm.com/OWL/elections2016#ClasseSociale"/>
</owl:NamedIndividual>
<!-- http://www.kdm.com/OWL/elections2016#January -->
<owl:NamedIndividual rdf:about="http://www.kdm.com/OWL/elections2016#January">
<rdf:type rdf:resource="http://www.kdm.com/OWL/elections2016#Periode"/>
</owl:NamedIndividual>
<!-- http://www.kdm.com/OWL/elections2016#July -->
<owl:NamedIndividual rdf:about="http://www.kdm.com/OWL/elections2016#July">
<rdf:type rdf:resource="http://www.kdm.com/OWL/elections2016#Periode"/>
</owl:NamedIndividual>
<!-- http://www.kdm.com/OWL/elections2016#June -->
<owl:NamedIndividual rdf:about="http://www.kdm.com/OWL/elections2016#June">
<rdf:type rdf:resource="http://www.kdm.com/OWL/elections2016#Periode"/>
</owl:NamedIndividual>
<!-- http://www.kdm.com/OWL/elections2016#March -->
<owl:NamedIndividual rdf:about="http://www.kdm.com/OWL/elections2016#March">
<rdf:type rdf:resource="http://www.kdm.com/OWL/elections2016#Periode"/>
</owl:NamedIndividual>
<!-- http://www.kdm.com/OWL/elections2016#May -->
<owl:NamedIndividual rdf:about="http://www.kdm.com/OWL/elections2016#May">
<rdf:type rdf:resource="http://www.kdm.com/OWL/elections2016#Periode"/>
</owl:NamedIndividual>
<!-- http://www.kdm.com/OWL/elections2016#New_York -->
<owl:NamedIndividual rdf:about="http://www.kdm.com/OWL/elections2016#New_York">
<rdf:type rdf:resource="http://www.kdm.com/OWL/elections2016#Region"/>
</owl:NamedIndividual>
<!-- http://www.kdm.com/OWL/elections2016#November -->
<owl:NamedIndividual rdf:about="http://www.kdm.com/OWL/elections2016#November">
<rdf:type rdf:resource="http://www.kdm.com/OWL/elections2016#Periode"/>
</owl:NamedIndividual>
<!-- http://www.kdm.com/OWL/elections2016#October -->
<owl:NamedIndividual rdf:about="http://www.kdm.com/OWL/elections2016#October">
<rdf:type rdf:resource="http://www.kdm.com/OWL/elections2016#Periode"/>
</owl:NamedIndividual>
<!-- http://www.kdm.com/OWL/elections2016#Over_50 -->
<owl:NamedIndividual rdf:about="http://www.kdm.com/OWL/elections2016#Over_50">
<rdf:type rdf:resource="http://www.kdm.com/OWL/elections2016#VotingAge"/>
</owl:NamedIndividual>
<!-- http://www.kdm.com/OWL/elections2016#Professeur -->
<owl:NamedIndividual rdf:about="http://www.kdm.com/OWL/elections2016#Professeur">
<rdf:type rdf:resource="http://www.kdm.com/OWL/elections2016#ClasseSociale"/>
</owl:NamedIndividual>
<!-- http://www.kdm.com/OWL/elections2016#RepublicNominee -->
<owl:NamedIndividual rdf:about="http://www.kdm.com/OWL/elections2016#RepublicNominee">
<rdf:type rdf:resource="http://www.kdm.com/OWL/elections2016#Republic"/>
<name>Donald Trump</name>
</owl:NamedIndividual>
<!-- http://www.kdm.com/OWL/elections2016#September -->
<owl:NamedIndividual rdf:about="http://www.kdm.com/OWL/elections2016#September">
<rdf:type rdf:resource="http://www.kdm.com/OWL/elections2016#Periode"/>
</owl:NamedIndividual>
<!-- http://www.kdm.com/OWL/elections2016#Texas -->
<owl:NamedIndividual rdf:about="http://www.kdm.com/OWL/elections2016#Texas">
<rdf:type rdf:resource="http://www.kdm.com/OWL/elections2016#Region"/>
</owl:NamedIndividual>
</rdf:RDF>
예 : I 데이터 프로퍼티 값이 H와 같은 무식한 사람들을 얻고 싶습니다. illry clinton ^^ xsd : string, Texas ^^ xsd : string 그리고 그 개체 속성들로부터 그 개인 들간의 관계를 매칭합니다.
Plz에서는 문제와 해결 방법에 대해 자세히 설명합니다. – Galigator
그래서 도메인 온톨로지를 사용하여 데이터 테이블에 주석을 달으려고하고 있는데, 테이블의 셀을 검색하고 (내 온톨로지에서 정확히 데이터 속성 어설 션임) 도메인 온톨로지에서 나타내는 개인을 찾습니다. 그런 다음 개인을 의사 소통의 속성으로 연결합니다. –
지금 무엇을 가지고 계십니까? 테이블 또는 OWL 온톨로지? 또는 간단한 RDF 데이터 세트? – AKSW