2012-04-25 3 views
0

OWL 형식을 따르는 RDF 코드를 생성하고 싶습니다. RDF 파일을 생성 할 수 있지만이를 OWL로 변환해야합니다. 아래는 내가 생성 할 수있는 RDF입니다.RDF를 OWL로 변환

<?xml version="1.0" encoding="UTF-8"?> 
<rdf:RDF 
    xmlns:ns1="http://example.com/nodetypes/2012/04/24/vehicle/" 
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
> 
    <rdf:Description rdf:about="http://example.com/nodetypes/2012/04/24/vehicle/2"> 
    <ns1:nodetype_ptr_id>2</ns1:nodetype_ptr_id> 
    <ns1:slug>vehicle</ns1:slug> 
    <ns1:last_update>2012-04-24 23:49:36.633689</ns1:last_update> 
    <ns1:end_publication>2042-03-15 00:00:00</ns1:end_publication> 
    <ns1:tree_id>2</ns1:tree_id> 
    <ns1:featured>False</ns1:featured> 
    <ns1:parent_id>None</ns1:parent_id> 
    <ns1:content></ns1:content> 
    <ns1:rating_score>0</ns1:rating_score> 
    <ns1:rating_votes>0</ns1:rating_votes> 
    <ns1:start_publication>2012-04-24 23:49:15</ns1:start_publication> 
    <ns1:level>0</ns1:level> 
    <ns1:creation_date>2012-04-24 23:49:15</ns1:creation_date> 
    <ns1:status>2</ns1:status> 
    <ns1:template>gstudio/nodetype_detail.html</ns1:template> 
    <ns1:content_org>None</ns1:content_org> 
    <ns1:excerpt></ns1:excerpt> 
    <ns1:plural>vehicles</ns1:plural> 
    <ns1:comment_enabled>True</ns1:comment_enabled> 
    <ns1:password></ns1:password> 
    <ns1:title>vehicle</ns1:title> 
    <ns1:login_required>False</ns1:login_required> 
    <ns1:pingback_enabled>True</ns1:pingback_enabled> 
    <ns1:rurl></ns1:rurl> 
    </rdf:Description> 
</rdf:RDF> 

답변

9

이미 완료되었습니다. RDF/XML 파일이 있습니다. OWL의 규범적인 구문은 RDF/XML이다. 그래서 그것은 OWL 파일이기도합니다.

11

cygri가 말한대로 작업이 완료되었습니다. 그러나 OWL 온톨로지를 지정하고 직접적인 의미를 지정하는 데 사용되는 OWL/XMLFunctional syntax의 두 가지 추가 규범 구문이 있습니다. 이 외에도 OWL에 대한 규범이 아닌 규약 (예 : The Manchester syntax)과 모든 RDF 직렬화 구문 (Turtle, N-Triples, Notation3, JSON-LD, RDF/JSON, HDT 등)이 있습니다. RDF Working Groupmaking Turtle a standarda JSON serialisation에서 작동합니다.

형식을 전환하려면 RDF/XML, 거북이, OWL/XML, 맨체스터 구문, 기능적 구문 및 LaTeX (기사에서 멋진 렌더링 용)를 출력 할 수있는 the converter at University of Manchester을 사용할 수 있습니다.

편집 : 2004 년 3 월 2014 Turtle, N-Triples, N-Quads 때문에, Trig 및 RDF에 대한 규범적인 구문입니다.

+0

감사합니다. 맨체스터 대학의 변환기는 실제로 일을 끝내기에 정말 좋지만 대신 rdf/xml에서 올빼미/xml로 전환하기 위해 변환기를 사용하고 싶지 않습니다. 대신이 작업을 수행하는 데 도움이되는 코드가 필요합니다. 가능합니다. ???? plzz help ... –

+0

Amita, Java를 사용하는 경우 OWL API를 사용하십시오. http://owlapi.sourceforge.net/ –

+0

고마워요.하지만 자바 대신 장고 프레임 워크에서 파이썬으로 작업하고 있습니다. –