Fedora 4中自定义的id和订单结构

时间:2017-10-23 19:46:24

标签: java apache-camel rdf json-ld fedora-commons

我有一个json-ld文件,结构如下:

{
  "@context": {
    "books_id":"http://schema.org/identifier",
    "comment":"http://schema.org/Comment",
    "date":"http://schema.org/Date",
    "responsibility":"http://www.loc.gov/standards/mods/modsrdf-primer.html#note",
    "spatial":"http://schema.org/spatial",
    "temporal":"http://schema.org/temporal",
    "edition":"http://schema.org/bookEdition",
    "url":"http://schema.org/url",
    "xsd": "http://www.w3.org/2001/XMLSchema#",
    "books":"http://schema.org/Book",
    "dc": "http://purl.org/dc/elements/1.1/",
    "series_titles":"http://schema.org/Series",
    "creator_transcription":"http://ndl.go.jp/dcndl/terms/creatorTranscription",
    "title_transcription":"http://ndl.go.jp/dcndl/terms/alternativeVolumeTitleTranscription",
    "physicalDescription":"http://www.loc.gov/standards/mods/modsrdf-primer.html#physicalDescription",
    "latitude": "http://schema.org/latitude",
    "longitude": "http://schema.org/longitude",
    "fedora": "info:fedora/fedora-system:def/model#",
     "ldp":"http://www.w3.org/ns/ldp#"

  },

  "books": [
    {
      "fedora:hasModel": "Book",
      "books_id": 201,
      "dc:title": "甕安縣志 21卷",
      "title_transcription": "weng an xian zhi 瓮安县志",
      "series_titles": "中國方志庫初集. 爱如生数字化技术研究中心, 北京",
      "dc:creator": "(民國)李退谷 (民國)朱勛 null",
      "creator_transcription": "li tui gu zhu xun null 李退谷 朱勋",
      "physical_description": "电子文献 electronic",
      "dc:issued": 1913,
      "date": 1913,
      "edition": "民國二年鉛印本",
      "temporal": "民國 (1911-1949)",
      "admin_level_1": "貴州",
      "admin_level_2": "黔南",
      "admin_type": "縣",
      "spatial": "甕安縣",
      "chgis": "hvd_122651",
      "latitude": 27.073069,
      "longitude": 107.482826,
      "dc:language": "chi",
      "comment": ""
    }
    ]
}

我对页面的结构相同。我尝试使用apache-camel将数据从文件或从Activemq移动到Fedora 4.传输工作正常,但存在一些问题:

  1. 我无法在Fedora 4中创建我的订单结构。所有数据按以下顺序保存:../ fcrepo-webapp-4.7.4/rest/.well-known/genid
    我想要一个以下结构:fcrepo / rest / collection / book / page。书是父母,页面是孩子。本书包含许多页面。

  2. Fedora 4创建了自己的网址ID。我知道可以从json-ld文件中定义自己的id。例: enter image description here

  3. 创建自定义的hasParent并更改已存在。 代码例程如下:

            from("file:data2")
                    .setHeader(Exchange.HTTP_METHOD, constant("POST"))
                    .setHeader(Exchange.CONTENT_TYPE, constant("application/ld+json"))
                    .to("fcrepo:localhost:8080/fcrepo-webapp-4.7.4/rest/test");
        }
    });
    
    context.start();
    Thread.sleep(10000);
    context.stop();
    

0 个答案:

没有答案