当前位置: 首页>>代码示例>>Java>>正文


Java StoreMetadataInventory类代码示例

本文整理汇总了Java中com.arjuna.databroker.metadata.rdf.StoreMetadataInventory的典型用法代码示例。如果您正苦于以下问题:Java StoreMetadataInventory类的具体用法?Java StoreMetadataInventory怎么用?Java StoreMetadataInventory使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


StoreMetadataInventory类属于com.arjuna.databroker.metadata.rdf包,在下文中一共展示了StoreMetadataInventory类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setupInventory

import com.arjuna.databroker.metadata.rdf.StoreMetadataInventory; //导入依赖的package包/类
@BeforeClass
public static void setupInventory()
{
    try
    {
        List<String>              ids              = new LinkedList<String>();
        Map<String, String>       contentMap       = new HashMap<String, String>();
        Map<String, String>       descriptionIdMap = new HashMap<String, String>();
        Map<String, String>       parentIdMap      = new HashMap<String, String>();
        Map<String, List<String>> childrenIdsMap   = new HashMap<String, List<String>>();

        String test0001 = Utils.loadInputStream(NavigationToMetadataTest.class.getResourceAsStream("Test0001.rdf"));

        ids.add("id1");
        contentMap.put("id1", test0001);

        DummyMetadataContentStore dummyMetadataContentStore = new DummyMetadataContentStore(ids, contentMap, descriptionIdMap, parentIdMap, childrenIdsMap);
        _metadataInventory = new StoreMetadataInventory(dummyMetadataContentStore);
    }
    catch (Throwable throwable)
    {
        fail("Failed to populate Metadata Inventory");
    }
}
 
开发者ID:RISBIC,项目名称:DataBroker,代码行数:25,代码来源:NavigationToMetadataTest.java

示例2: setupInventory

import com.arjuna.databroker.metadata.rdf.StoreMetadataInventory; //导入依赖的package包/类
@BeforeClass
public static void setupInventory()
{
    try
    {
        List<String>              ids              = new LinkedList<String>();
        Map<String, String>       contentMap       = new HashMap<String, String>();
        Map<String, String>       descriptionIdMap = new HashMap<String, String>();
        Map<String, String>       parentIdMap      = new HashMap<String, String>();
        Map<String, List<String>> childrenIdsMap   = new HashMap<String, List<String>>();

        String test0001 = Utils.loadInputStream(NavigationToMetadataContentTest.class.getResourceAsStream("Test0001.rdf"));

        ids.add("id");
        contentMap.put("id", test0001);

        DummyMetadataContentStore dummyMetadataContentStore = new DummyMetadataContentStore(ids, contentMap, descriptionIdMap, parentIdMap, childrenIdsMap);
        MetadataInventory         metadataInventory         = new StoreMetadataInventory(dummyMetadataContentStore);

        _metadata = metadataInventory.metadata("id").getMetadata();
    }
    catch (Throwable throwable)
    {
        fail("Failed to populate Metadata Inventory");
    }
}
 
开发者ID:RISBIC,项目名称:DataBroker,代码行数:27,代码来源:NavigationToMetadataContentTest.java

示例3: setupInventory

import com.arjuna.databroker.metadata.rdf.StoreMetadataInventory; //导入依赖的package包/类
@BeforeClass
public static void setupInventory()
{
    try
    {
        List<String>              ids              = new LinkedList<String>();
        Map<String, String>       contentMap       = new HashMap<String, String>();
        Map<String, String>       descriptionIdMap = new HashMap<String, String>();
        Map<String, String>       parentIdMap      = new HashMap<String, String>();
        Map<String, List<String>> childrenIdsMap   = new HashMap<String, List<String>>();

        String test0001 = Utils.loadInputStream(MetaContentToViewTest.class.getResourceAsStream("Test0001.rdf"));

        ids.add("id1");
        contentMap.put("id1", test0001);

        DummyMetadataContentStore dummyMetadataContentStore = new DummyMetadataContentStore(ids, contentMap, descriptionIdMap, parentIdMap, childrenIdsMap);
        MetadataInventory         metadataInventory         = new StoreMetadataInventory(dummyMetadataContentStore);
        Metadata                  metadata                  = metadataInventory.metadata("id1").getMetadata();

        _metadataContent = metadata.contents().selector(RDFMetadataContentsSelector.class).withPath("http://rdf.arjuna.com/test0001#Test01").getMetadataContent();
    }
    catch (Throwable throwable)
    {
        fail("Failed to populate Metadata Inventory");
    }
}
 
开发者ID:RISBIC,项目名称:DataBroker,代码行数:28,代码来源:ObjectMethodViewTest.java

示例4: setupInventory

import com.arjuna.databroker.metadata.rdf.StoreMetadataInventory; //导入依赖的package包/类
@BeforeClass
public static void setupInventory()
{
    try
    {
        List<String>              ids              = new LinkedList<String>();
        Map<String, String>       contentMap       = new HashMap<String, String>();
        Map<String, String>       descriptionIdMap = new HashMap<String, String>();
        Map<String, String>       parentIdMap      = new HashMap<String, String>();
        Map<String, List<String>> childrenIdsMap   = new HashMap<String, List<String>>();

        String test0001 = Utils.loadInputStream(DescriptionSearchTest.class.getResourceAsStream("Test0001.rdf"));
        String test0002 = Utils.loadInputStream(DescriptionSearchTest.class.getResourceAsStream("Test0002.rdf"));

        ids.add("id1");
        ids.add("id2");
        contentMap.put("id1", test0001);
        contentMap.put("id2", test0002);
        descriptionIdMap.put("id1", "id2");

        DummyMetadataContentStore dummyMetadataContentStore = new DummyMetadataContentStore(ids, contentMap, descriptionIdMap, parentIdMap, childrenIdsMap);
        MetadataInventory         metadataInventory         = new StoreMetadataInventory(dummyMetadataContentStore);

        _metadata = metadataInventory.metadata("id1").getMetadata();
    }
    catch (Throwable throwable)
    {
        fail("Failed to populate Metadata Inventory");
    }
 }
 
开发者ID:RISBIC,项目名称:DataBroker,代码行数:31,代码来源:DescriptionSearchTest.java

示例5: setupInventory

import com.arjuna.databroker.metadata.rdf.StoreMetadataInventory; //导入依赖的package包/类
@BeforeClass
public static void setupInventory()
{
    try
    {
        List<String>              ids              = new LinkedList<String>();
        Map<String, String>       contentMap       = new HashMap<String, String>();
        Map<String, String>       descriptionIdMap = new HashMap<String, String>();
        Map<String, String>       parentIdMap      = new HashMap<String, String>();
        Map<String, List<String>> childrenIdsMap   = new HashMap<String, List<String>>();

        String testList0002 = Utils.loadInputStream(MetaContentToViewListViewTest.class.getResourceAsStream("TestList0002.rdf"));

        ids.add("id1");
        contentMap.put("id1", testList0002);

        DummyMetadataContentStore dummyMetadataContentStore = new DummyMetadataContentStore(ids, contentMap, descriptionIdMap, parentIdMap, childrenIdsMap);
        MetadataInventory         metadataInventory         = new StoreMetadataInventory(dummyMetadataContentStore);
        Metadata                  metadata                  = metadataInventory.metadata("id1").getMetadata();

        _metadataContent = metadata.contents().selector(RDFMetadataContentsSelector.class).withPath("http://rdf.arjuna.com/testlist0002#TestList01").getMetadataContent();
    }
    catch (Throwable throwable)
    {
        fail("Failed to populate Metadata Inventory");
    }
}
 
开发者ID:RISBIC,项目名称:DataBroker,代码行数:28,代码来源:MetaContentToViewListViewTest.java

示例6: setupInventory

import com.arjuna.databroker.metadata.rdf.StoreMetadataInventory; //导入依赖的package包/类
@BeforeClass
public static void setupInventory()
{
    try
    {
        List<String>              ids              = new LinkedList<String>();
        Map<String, String>       contentMap       = new HashMap<String, String>();
        Map<String, String>       descriptionIdMap = new HashMap<String, String>();
        Map<String, String>       parentIdMap      = new HashMap<String, String>();
        Map<String, List<String>> childrenIdsMap   = new HashMap<String, List<String>>();

        String testList0001 = Utils.loadInputStream(MetaContentToListViewTest.class.getResourceAsStream("TestList0001.rdf"));

        ids.add("id1");
        contentMap.put("id1", testList0001);

        DummyMetadataContentStore dummyMetadataContentStore = new DummyMetadataContentStore(ids, contentMap, descriptionIdMap, parentIdMap, childrenIdsMap);
        MetadataInventory         metadataInventory         = new StoreMetadataInventory(dummyMetadataContentStore);
        Metadata                  metadata                  = metadataInventory.metadata("id1").getMetadata();

        _metadataContent = metadata.contents().selector(RDFMetadataContentsSelector.class).withPath("http://rdf.arjuna.com/testlist0001#TestList01").getMetadataContent();
    }
    catch (Throwable throwable)
    {
        fail("Failed to populate Metadata Inventory");
    }
}
 
开发者ID:RISBIC,项目名称:DataBroker,代码行数:28,代码来源:MetaContentToListViewTest.java

示例7: setupInventory

import com.arjuna.databroker.metadata.rdf.StoreMetadataInventory; //导入依赖的package包/类
@BeforeClass
public static void setupInventory()
{
    try
    {
        List<String>              ids              = new LinkedList<String>();
        Map<String, String>       contentMap       = new HashMap<String, String>();
        Map<String, String>       descriptionIdMap = new HashMap<String, String>();
        Map<String, String>       parentIdMap      = new HashMap<String, String>();
        Map<String, List<String>> childrenIdsMap   = new HashMap<String, List<String>>();

        String testList0001 = Utils.loadInputStream(MetaContentToMutableListViewTest.class.getResourceAsStream("TestList0001.rdf"));

        ids.add("id1");
        contentMap.put("id1", testList0001);

        DummyMetadataContentStore dummyMetadataContentStore = new DummyMetadataContentStore(ids, contentMap, descriptionIdMap, parentIdMap, childrenIdsMap);
        MetadataInventory         metadataInventory         = new StoreMetadataInventory(dummyMetadataContentStore);
        Metadata                  metadata                  = metadataInventory.metadata("id1").getMetadata();

        _mutableMetadataContent = metadata.contents().selector(RDFMetadataContentsSelector.class).withPath("http://rdf.arjuna.com/testlist0001#TestList01").getMetadataContent().mutableClone(RDFMutableMetadataContent.class);
    }
    catch (Throwable throwable)
    {
        fail("Failed to populate Metadata Inventory");
    }
}
 
开发者ID:RISBIC,项目名称:DataBroker,代码行数:28,代码来源:MetaContentToMutableListViewTest.java

示例8: setupInventory

import com.arjuna.databroker.metadata.rdf.StoreMetadataInventory; //导入依赖的package包/类
@BeforeClass
public static void setupInventory()
{
    try
    {
        List<String>              ids              = new LinkedList<String>();
        Map<String, String>       contentMap       = new HashMap<String, String>();
        Map<String, String>       descriptionIdMap = new HashMap<String, String>();
        Map<String, String>       parentIdMap      = new HashMap<String, String>();
        Map<String, List<String>> childrenIdsMap   = new HashMap<String, List<String>>();

        String test0001 = Utils.loadInputStream(MetaContentToMutableViewTest.class.getResourceAsStream("Test0001.rdf"));

        ids.add("id1");
        contentMap.put("id1", test0001);

        DummyMetadataContentStore dummyMetadataContentStore = new DummyMetadataContentStore(ids, contentMap, descriptionIdMap, parentIdMap, childrenIdsMap);
        MetadataInventory         metadataInventory         = new StoreMetadataInventory(dummyMetadataContentStore);
        Metadata                  metadata                  = metadataInventory.metadata("id1").getMetadata();

        _mutableMetadataContent = metadata.contents().selector(RDFMetadataContentsSelector.class).withPath("http://rdf.arjuna.com/test0001#Test01").getMetadataContent().mutableClone(RDFMutableMetadataContent.class);
    }
    catch (Throwable throwable)
    {
        fail("Failed to populate Metadata Inventory");
    }
}
 
开发者ID:RISBIC,项目名称:DataBroker,代码行数:28,代码来源:MetaContentToMutableViewTest.java

示例9: setupInventory

import com.arjuna.databroker.metadata.rdf.StoreMetadataInventory; //导入依赖的package包/类
@BeforeClass
public static void setupInventory()
{
    try
    {
        List<String>              ids              = new LinkedList<String>();
        Map<String, String>       contentMap       = new HashMap<String, String>();
        Map<String, String>       descriptionIdMap = new HashMap<String, String>();
        Map<String, String>       parentIdMap      = new HashMap<String, String>();
        Map<String, List<String>> childrenIdsMap   = new HashMap<String, List<String>>();

        String testList0002 = Utils.loadInputStream(MetaContentToMutableViewListViewTest.class.getResourceAsStream("TestList0002.rdf"));

        ids.add("id1");
        contentMap.put("id1", testList0002);

        DummyMetadataContentStore dummyMetadataContentStore = new DummyMetadataContentStore(ids, contentMap, descriptionIdMap, parentIdMap, childrenIdsMap);
        MetadataInventory         metadataInventory         = new StoreMetadataInventory(dummyMetadataContentStore);
        Metadata                  metadata                  = metadataInventory.metadata("id1").getMetadata();

        _mutableMetadataContent = metadata.contents().selector(RDFMetadataContentsSelector.class).withPath("http://rdf.arjuna.com/testlist0002#TestList01").getMetadataContent().mutableClone(RDFMutableMetadataContent.class);
    }
    catch (Throwable throwable)
    {
        fail("Failed to populate Metadata Inventory");
    }
}
 
开发者ID:RISBIC,项目名称:DataBroker,代码行数:28,代码来源:MetaContentToMutableViewListViewTest.java

示例10: setupInventory

import com.arjuna.databroker.metadata.rdf.StoreMetadataInventory; //导入依赖的package包/类
@BeforeClass
public static void setupInventory()
{
    try
    {
        List<String>              ids              = new LinkedList<String>();
        Map<String, String>       contentMap       = new HashMap<String, String>();
        Map<String, String>       descriptionIdMap = new HashMap<String, String>();
        Map<String, String>       parentIdMap      = new HashMap<String, String>();
        Map<String, List<String>> childrenIdsMap   = new HashMap<String, List<String>>();

        String exampleDB01 = Utils.loadInputStream(DatabaseViewTest.class.getResourceAsStream("ExampleDB01.rdf"));

        ids.add("exampleDB01");
        contentMap.put("exampleDB01", exampleDB01);

        DummyMetadataContentStore dummyMetadataContentStore = new DummyMetadataContentStore(ids, contentMap, descriptionIdMap, parentIdMap, childrenIdsMap);
        MetadataInventory         metadataInventory         = new StoreMetadataInventory(dummyMetadataContentStore);
        Metadata                  metadata                  = metadataInventory.metadata("exampleDB01").getMetadata();

        _metadataContent = metadata.contents().selector(RDFMetadataContentsSelector.class).withPath("http://rdf.example.org/PS_Test#databroker").getMetadataContent();
    }
    catch (Throwable throwable)
    {
        fail("Failed to populate Metadata Inventory");
    }
}
 
开发者ID:arjuna-technologies,项目名称:Metadata_Utilities,代码行数:28,代码来源:DatabaseViewTest.java

示例11: setupInventory

import com.arjuna.databroker.metadata.rdf.StoreMetadataInventory; //导入依赖的package包/类
@BeforeClass
public static void setupInventory()
{
    try
    {
        List<String>              ids              = new LinkedList<String>();
        Map<String, String>       contentMap       = new HashMap<String, String>();
        Map<String, String>       descriptionIdMap = new HashMap<String, String>();
        Map<String, String>       parentIdMap      = new HashMap<String, String>();
        Map<String, List<String>> childrenIdsMap   = new HashMap<String, List<String>>();

        String exampleDB01 = Utils.loadInputStream(TableViewTest.class.getResourceAsStream("ExampleDB01.rdf"));

        ids.add("exampleDB01");
        contentMap.put("exampleDB01", exampleDB01);

        DummyMetadataContentStore dummyMetadataContentStore = new DummyMetadataContentStore(ids, contentMap, descriptionIdMap, parentIdMap, childrenIdsMap);
        MetadataInventory         metadataInventory         = new StoreMetadataInventory(dummyMetadataContentStore);
        Metadata                  metadata                  = metadataInventory.metadata("exampleDB01").getMetadata();

        _metadataContent = metadata.contents().selector(RDFMetadataContentsSelector.class).withPath("http://rdf.example.org/PS_Test#databroker").getMetadataContent();
    }
    catch (Throwable throwable)
    {
        fail("Failed to populate Metadata Inventory");
    }
}
 
开发者ID:arjuna-technologies,项目名称:Metadata_Utilities,代码行数:28,代码来源:TableViewTest.java

示例12: setupInventory

import com.arjuna.databroker.metadata.rdf.StoreMetadataInventory; //导入依赖的package包/类
@BeforeClass
public static void setupInventory()
{
    try
    {
        List<String>              ids              = new LinkedList<String>();
        Map<String, String>       contentMap       = new HashMap<String, String>();
        Map<String, String>       descriptionIdMap = new HashMap<String, String>();
        Map<String, String>       parentIdMap      = new HashMap<String, String>();
        Map<String, List<String>> childrenIdsMap   = new HashMap<String, List<String>>();

        String exampleDB01 = Utils.loadInputStream(FieldViewTest.class.getResourceAsStream("ExampleDB01.rdf"));

        ids.add("exampleDB01");
        contentMap.put("exampleDB01", exampleDB01);

        DummyMetadataContentStore dummyMetadataContentStore = new DummyMetadataContentStore(ids, contentMap, descriptionIdMap, parentIdMap, childrenIdsMap);
        MetadataInventory         metadataInventory         = new StoreMetadataInventory(dummyMetadataContentStore);
        Metadata                  metadata                  = metadataInventory.metadata("exampleDB01").getMetadata();

        _metadataContent = metadata.contents().selector(RDFMetadataContentsSelector.class).withPath("http://rdf.example.org/PS_Test#databroker").getMetadataContent();
    }
    catch (Throwable throwable)
    {
        fail("Failed to populate Metadata Inventory");
    }
}
 
开发者ID:arjuna-technologies,项目名称:Metadata_Utilities,代码行数:28,代码来源:FieldViewTest.java

示例13: setupInventory

import com.arjuna.databroker.metadata.rdf.StoreMetadataInventory; //导入依赖的package包/类
@BeforeClass
public static void setupInventory()
{
    try
    {
        List<String>              ids              = new LinkedList<String>();
        Map<String, String>       contentMap       = new HashMap<String, String>();
        Map<String, String>       descriptionIdMap = new HashMap<String, String>();
        Map<String, String>       parentIdMap      = new HashMap<String, String>();
        Map<String, List<String>> childrenIdsMap   = new HashMap<String, List<String>>();

        String exampleCSV01 = Utils.loadInputStream(ColumnViewTest.class.getResourceAsStream("ExampleCSV01.rdf"));

        ids.add("exampleCSV01");
        contentMap.put("exampleCSV01", exampleCSV01);

        DummyMetadataContentStore dummyMetadataContentStore = new DummyMetadataContentStore(ids, contentMap, descriptionIdMap, parentIdMap, childrenIdsMap);
        MetadataInventory         metadataInventory         = new StoreMetadataInventory(dummyMetadataContentStore);
        Metadata                  metadata                  = metadataInventory.metadata("exampleCSV01").getMetadata();

        _metadataContent = metadata.contents().selector(RDFMetadataContentsSelector.class).withPath("http://rdf.example.org/CSV_Test#2fbcd7b8-f2d7-4894-b1c4-e2a5e70e9bfa").getMetadataContent();
    }
    catch (Throwable throwable)
    {
        fail("Failed to populate Metadata Inventory");
    }
}
 
开发者ID:arjuna-technologies,项目名称:Metadata_Utilities,代码行数:28,代码来源:TableViewTest.java

示例14: setupInventory

import com.arjuna.databroker.metadata.rdf.StoreMetadataInventory; //导入依赖的package包/类
@BeforeClass
public static void setupInventory()
{
    try
    {
        List<String>              ids              = new LinkedList<String>();
        Map<String, String>       contentMap       = new HashMap<String, String>();
        Map<String, String>       descriptionIdMap = new HashMap<String, String>();
        Map<String, String>       parentIdMap      = new HashMap<String, String>();
        Map<String, List<String>> childrenIdsMap   = new HashMap<String, List<String>>();

        String exampleCVS01 = Utils.loadInputStream(ColumnViewTest.class.getResourceAsStream("ExampleCSV01.rdf"));

        ids.add("exampleCVS01");
        contentMap.put("exampleCVS01", exampleCVS01);

        DummyMetadataContentStore dummyMetadataContentStore = new DummyMetadataContentStore(ids, contentMap, descriptionIdMap, parentIdMap, childrenIdsMap);
        MetadataInventory         metadataInventory         = new StoreMetadataInventory(dummyMetadataContentStore);
        Metadata                  metadata                  = metadataInventory.metadata("exampleCVS01").getMetadata();

        _metadataContent = metadata.contents().selector(RDFMetadataContentsSelector.class).withPath("http://rdf.example.org/CSV_Test#2fbcd7b8-f2d7-4894-b1c4-e2a5e70e9bfa").getMetadataContent();
    }
    catch (Throwable throwable)
    {
        fail("Failed to populate Metadata Inventory");
    }
}
 
开发者ID:arjuna-technologies,项目名称:Metadata_Utilities,代码行数:28,代码来源:ColumnViewTest.java

示例15: setupInventory

import com.arjuna.databroker.metadata.rdf.StoreMetadataInventory; //导入依赖的package包/类
@BeforeClass
public static void setupInventory()
{
    try
    {
        List<String>              ids              = new LinkedList<String>();
        Map<String, String>       contentMap       = new HashMap<String, String>();
        Map<String, String>       descriptionIdMap = new HashMap<String, String>();
        Map<String, String>       parentIdMap      = new HashMap<String, String>();
        Map<String, List<String>> childrenIdsMap   = new HashMap<String, List<String>>();

        String exampleXSSF01 = Utils.loadInputStream(ColumnViewTest.class.getResourceAsStream("ExampleXSSF01.rdf"));

        ids.add("exampleXSSF01");
        contentMap.put("exampleXSSF01", exampleXSSF01);

        DummyMetadataContentStore dummyMetadataContentStore = new DummyMetadataContentStore(ids, contentMap, descriptionIdMap, parentIdMap, childrenIdsMap);
        MetadataInventory         metadataInventory         = new StoreMetadataInventory(dummyMetadataContentStore);
        Metadata                  metadata                  = metadataInventory.metadata("exampleXSSF01").getMetadata();

        _metadataContent = metadata.contents().selector(RDFMetadataContentsSelector.class).withPath("http://rdf.example.org/XSSF_Test#TimeSheet").getMetadataContent();
    }
    catch (Throwable throwable)
    {
        fail("Failed to populate Metadata Inventory");
    }
}
 
开发者ID:arjuna-technologies,项目名称:Metadata_Utilities,代码行数:28,代码来源:SheetViewTest.java


注:本文中的com.arjuna.databroker.metadata.rdf.StoreMetadataInventory类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。