简体   繁体   English

将RDF转换为OWL

[英]converting RDF to OWL

I want to generate RDF code that follows the OWL format. 我想生成遵循OWL格式的RDF代码。 I am able to generate an RDF file, but I need to convert it into OWL. 我能够生成RDF文件,但需要将其转换为OWL。 Below is the RDF that I can generate. 以下是我可以生成的RDF。

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

As cygri says, the job is done. 正如cygri所说,工作已经完成。 However, there are now two additional normative syntaxes: OWL/XML and the Functional syntax which is used to specify what's an OWL ontology and to specify its direct semantics. 但是,现在有两种附加的规范化语法: OWL / XML功能性语法 ,用于指定什么是OWL本体并指定其直接语义。 In addition to these, there are non-normative syntaxes for OWL: The Manchester syntax and all the RDF serialisation syntaxes ( Turtle , N-Triples , Notation3 , JSON-LD , RDF/JSON , HDT , etc). 除此之外,还有OWL的非规范性语法: Manchester语法和所有RDF序列化语法( TurtleN-TriplesNotation3JSON-LDRDF / JSONHDT等)。 The RDF Working Group is working at making Turtle a standard , as well as a JSON serialisation . RDF工作组正在努力使Turtle成为标准以及JSON序列化

In order to switch format, you can use the converter at University of Manchester , which can output RDF/XML, Turtle, OWL/XML, Manchester syntax, Functional syntax and also LaTeX (for nice rendering in articles). 为了切换格式,您可以使用曼彻斯特大学的转换器,该转换器可以输出RDF / XML,Turtle,OWL / XML,Manchester语法,Functional语法以及LaTeX(用于在文章中进行漂亮的渲染)。

Edit: Since February 2014, Turtle , N-Triples , N-Quads , and Trig are normative syntaxes for RDF. 编辑:自2014年2月以来, TurtleN-TriplesN-QuadsTrig是RDF的规范语法。

You're already done. 您已经完成了。 What you have there is an RDF/XML file. 您所拥有的是一个RDF / XML文件。 The normative syntax for OWL is RDF/XML. OWL的规范语法是RDF / XML。 So it is an OWL file too. 因此它也是一个OWL文件。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM