代码之家  ›  专栏  ›  技术社区  ›  paulmurray

将RDF URI引用与物理URL关联

rdf
  •  3
  • paulmurray  · 技术社区  · 14 年前

    在RDF文档中,是否有一种方法为URI引用指定物理URL?也就是说,在XML模式文档中执行与xsi:schemaLocation相同的工作?

    我理解,正确的方法是使用URI通过内容协商执行303重定向,但是如果设置重定向很麻烦,我的RDF文档能否解释

    http://foo.bar.com/voc/SpecialSettings

    从物理位置提取

    http://server1.bar.com/prod/app3/SpecialSettings.owl

    ?


    更新:我们通过向服务器解释它需要发送重定向来解决这个问题。见 http://biodiversity.org.au/voc/ibis/IBIS

    2 回复  |  直到 14 年前
        2
  •  2
  •   Ed Summers    14 年前

    @rorty:~/tmp$ curl -I http://www.w3.org/2002/07/owl
    HTTP/1.1 200 OK
    Date: Fri, 15 Oct 2010 14:34:23 GMT
    Server: Apache/2
    Content-Location: owl.rdf
    Vary: negotiate,accept
    TCN: choice
    Last-Modified: Sun, 15 Nov 2009 10:54:12 GMT
    ETag: "7c75-47866b6941d00;47803990f62c0"
    Accept-Ranges: bytes
    Cache-Control: max-age=21600
    Expires: Fri, 15 Oct 2010 20:34:23 GMT
    P3P: policyref="http://www.w3.org/2001/05/P3P/p3p.xml"
    Content-Type: application/rdf+xml; qs=0.9
    Content-Length: 31861
    Connection: Keep-Alive