You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Current »

Summary

Representation example in DSPace

Representation in TTL (extract from RDFizer)

Community Taxonomy in TURTLE
### Repository

@prefix void:  <http://rdfs.org/ns/void#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix foaf:  <http://xmlns.com/foaf/0.1/> .
@prefix dspace: <http://digital-repositories.org/ontologies/dspace/0.1.0#> .

<http://localhost:8080/server/rdf/resource/123456789/0>
        dspace:hasCommunity  <http://localhost:8080/server/rdf/resource/123456789/2> , <http://localhost:8080/server/rdf/resource/123456789/1> , <http://localhost:8080/server/rdf/resource/123456789/58> ;
        dcterms:hasPart      <http://localhost:8080/server/rdf/resource/123456789/2> , <http://localhost:8080/server/rdf/resource/123456789/1> , <http://localhost:8080/server/rdf/resource/123456789/58> ;
        void:sparqlEndpoint  <http://localhost/fuseki/dspace/sparql> ;
        foaf:homepage        <http://localhost:8080/> .

### Super Community

@prefix void:  <http:/rdfs.org/ns/void#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix bibo:  <http://purl.org/ontology/bibo/> .
@prefix foaf:  <http://xmlns.com/foaf/0.1/> .
@prefix dspace: <http://digital-repositories.org/ontologies/dspace/0.1.0#> .

<http://localhost:8080/server/rdf/resource/123456789/58>
        a                          bibo:Collection ;
        dspace:hasCollection       <http://localhost:8080/server/rdf/resource/123456789/61> , <http://localhost:8080/server/rdf/resource/123456789/62> , <http://localhost:8080/server/rdf/resource/123456789/63> , 
								   <http://localhost:8080/server/rdf/resource/123456789/64> ;
        dspace:hasSubcommunity     <http://localhost:8080/server/rdf/resource/123456789/60> , <http://localhost:8080/server/rdf/resource/123456789/59> ;
        dspace:isPartOfRepository  <http://localhost:8080/server/rdf/resource/123456789/0> ;
        dcterms:hasPart            <http://localhost:8080/server/rdf/resource/123456789/60> , <http://localhost:8080/server/rdf/resource/123456789/63> , <http://localhost:8080/server/rdf/resource/123456789/59> , 
								   <http://localhost:8080/server/rdf/resource/123456789/64> , <http://localhost:8080/server/rdf/resource/123456789/61> , <http://localhost:8080/server/rdf/resource/123456789/62> ;
        dcterms:isPartOf           <http://localhost:8080/server/rdf/resource/123456789/0> ;
        void:sparqlEndpoint        <http://localhost/fuseki/dspace/sparql> ;
        foaf:homepage              <http://localhost:8080/> .


### Super Community / Sub Community 1

@prefix void:  <http://rdfs.org/ns/void#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix bibo:  <http://purl.org/ontology/bibo/> .
@prefix foaf:  <http://xmlns.com/foaf/0.1/> .
@prefix dspace: <http://digital-repositories.org/ontologies/dspace/0.1.0#> .

<http://localhost:8080/server/rdf/resource/123456789/59>
        a                        bibo:Collection ;
        dspace:hasCollection     <http://localhost:8080/server/rdf/resource/123456789/61> , <http://localhost:8080/server/rdf/resource/123456789/62> ;
        dspace:hasSubcommunity   <http://localhost:8080/server/rdf/resource/123456789/65> ;
        dspace:isSubcommunityOf  <http://localhost:8080/server/rdf/resource/123456789/58> ;
        dcterms:hasPart          <http://localhost:8080/server/rdf/resource/123456789/62> , <http://localhost:8080/server/rdf/resource/123456789/65> , <http://localhost:8080/server/rdf/resource/123456789/61> ;
        dcterms:isPartOf         <http://localhost:8080/server/rdf/resource/123456789/58> ;
        void:sparqlEndpoint      <http://localhost/fuseki/dspace/sparql> ;
        foaf:homepage            <http://localhost:8080/> .

### Super Community / Sub Community 2

@prefix void:  <http://rdfs.org/ns/void#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix bibo:  <http://purl.org/ontology/bibo/> .
@prefix foaf:  <http://xmlns.com/foaf/0.1/> .
@prefix dspace: <http://digital-repositories.org/ontologies/dspace/0.1.0#> .

<http://localhost:8080/server/rdf/resource/123456789/60>
        a                        bibo:Collection ;
        dspace:hasCollection     <http://localhost:8080/server/rdf/resource/123456789/63> , <http://localhost:8080/server/rdf/resource/123456789/64> ;
        dspace:isSubcommunityOf  <http://localhost:8080/server/rdf/resource/123456789/58> ;
        dcterms:hasPart          <http://localhost:8080/server/rdf/resource/123456789/63> , <http://localhost:8080/server/rdf/resource/123456789/64> ;
        dcterms:isPartOf         <http://localhost:8080/server/rdf/resource/123456789/58> ;
        void:sparqlEndpoint      <http://localhost/fuseki/dspace/sparql> ;
        foaf:homepage            <http://localhost:8080/> .

### Sub Community 1 / Papers (Collection)

@prefix void:  <http://rdfs.org/ns/void#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix bibo:  <http://purl.org/ontology/bibo/> .
@prefix foaf:  <http://xmlns.com/foaf/0.1/> .
@prefix dspace: <http://digital-repositories.org/ontologies/dspace/0.1.0#> .

<http://localhost:8080/server/rdf/resource/123456789/61>
        a                         bibo:Collection ;
        dspace:hasItem            <http://localhost:8080/server/rdf/resource/123456789/66> ;
        dspace:isPartOfCommunity  <http://localhost:8080/server/rdf/resource/123456789/59> , <http://localhost:8080/server/rdf/resource/123456789/58> ;
        dcterms:hasPart           <http://localhost:8080/server/rdf/resource/123456789/66> ;
        dcterms:isPartOf          <http://localhost:8080/server/rdf/resource/123456789/59> , <http://localhost:8080/server/rdf/resource/123456789/58> ;
        void:sparqlEndpoint       <http://localhost/fuseki/dspace/sparql> ;
        foaf:homepage             <http://localhost:8080/> .

### Sub Community 1 / Thesis (Collection)

@prefix void:  <http://rdfs.org/ns/void#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix bibo:  <http://purl.org/ontology/bibo/> .
@prefix foaf:  <http://xmlns.com/foaf/0.1/> .
@prefix dspace: <http://digital-repositories.org/ontologies/dspace/0.1.0#> .

<http://localhost:8080/server/rdf/resource/123456789/62>
        a                         bibo:Collection ;
        dspace:hasItem            <http://localhost:8080/server/rdf/resource/123456789/68> ;
        dspace:isPartOfCommunity  <http://localhost:8080/server/rdf/resource/123456789/59> , <http://localhost:8080/server/rdf/resource/123456789/58> ;
        dcterms:hasPart           <http://localhost:8080/server/rdf/resource/123456789/68> ;
        dcterms:isPartOf          <http://localhost:8080/server/rdf/resource/123456789/59> , <http://localhost:8080/server/rdf/resource/123456789/58> ;
        void:sparqlEndpoint       <http://localhost/fuseki/dspace/sparql> ;
        foaf:homepage             <http://localhost:8080/> .

### Sub Community 1 / Papers / Test paper (Item)

@prefix void:  <http://rdfs.org/ns/void#> .
@prefix xsd:   <http://www.w3.org/2001/XMLSchema#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix bibo:  <http://purl.org/ontology/bibo/> .
@prefix foaf:  <http://xmlns.com/foaf/0.1/> .
@prefix dspace: <http://digital-repositories.org/ontologies/dspace/0.1.0#> .
@prefix dc:    <http://purl.org/dc/elements/1.1/> .

<http://localhost:8080/server/rdf/resource/123456789/66>
        dspace:hasBitstream        <http://localhost:4000/bitstream/123456789/66/1/bubble-chart-line.png> ;
        dspace:isPartOfCollection  <http://localhost:8080/server/rdf/resource/123456789/61> ;
        dc:date                    "2022-04-02T06:26:06Z"^^xsd:dateTime ;
        dcterms:available          "2022-04-02T06:26:06Z"^^xsd:dateTime ;
        dcterms:hasPart            <http://localhost:4000/bitstream/123456789/66/1/bubble-chart-line.png> ;
        dcterms:isPartOf           <http://localhost:8080/server/rdf/resource/123456789/61> ;
        dcterms:issued             "2022" ;
        dcterms:title              "Test paper" ;
        bibo:uri                   <http://localhost:4000/handle/123456789/66> ;
        void:sparqlEndpoint        <http://localhost/fuseki/dspace/sparql> ;
        foaf:homepage              <http://localhost:8080/> .

### Sub Community 1 / Papers / Test thesis (Item)

@prefix void:  <http://rdfs.org/ns/void#> .
@prefix xsd:   <http://www.w3.org/2001/XMLSchema#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix bibo:  <http://purl.org/ontology/bibo/> .
@prefix foaf:  <http://xmlns.com/foaf/0.1/> .
@prefix dspace: <http://digital-repositories.org/ontologies/dspace/0.1.0#> .
@prefix dc:    <http://purl.org/dc/elements/1.1/> .

<http://localhost:8080/server/rdf/resource/123456789/68>
        dspace:hasBitstream        <http://localhost:4000/bitstream/123456789/68/1/bubble-chart-line.png> ;
        dspace:isPartOfCollection  <http://localhost:8080/server/rdf/resource/123456789/62> ;
        dc:date                    "2022-04-02T06:28:50Z"^^xsd:dateTime ;
        dcterms:available          "2022-04-02T06:28:50Z"^^xsd:dateTime ;
        dcterms:hasPart            <http://localhost:4000/bitstream/123456789/68/1/bubble-chart-line.png> ;
        dcterms:isPartOf           <http://localhost:8080/server/rdf/resource/123456789/62> ;
        dcterms:issued             "2022" ;
        dcterms:title              "Test thesis" ;
        bibo:uri                   <http://localhost:4000/handle/123456789/68> ;
        void:sparqlEndpoint        <http://localhost/fuseki/dspace/sparql> ;
        foaf:homepage              <http://localhost:8080/> .

YAML Metamodel

openapi: "3.0.2"
info:
  version: 1.1.0
  title: DSpace-VIVO EXchange Data Schema (DVExDS)
  description: |-
    This is the "DSpace-VIVO EXchange Data Schema (DVExDS)" based on the OpenAPI 3.0.2 specification.
    You can find out more about Swagger at [http://swagger.io](http://swagger.io). In the third iteration of the pet store, we've switched to the design first approach!
    You can now help us improve the API whether it's by making changes to the definition itself or to the code.
    That way, with time, we can improve the API in general, and expose some of the new features in OAS3.
    Some useful links:
    - [DSpace-VIVO - Integration project of DSpace metadata with VIVO](https://github.com/vivo-community/DSpace-VIVO) 
    - [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)
    - [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)
  termsOfService: http://swagger.io/terms/
  contact:
    name: Michel Héon PhD
    email: vivo@uqam.ca
    url: https://github.com/vivo-community/DSpace-VIVO
  license:
    name: BSD 3-Clause License
    url: http://www.apache.org/licenses/LICENSE-2.0.html
servers:
  - url: /api
tags:
- name: "DSpace"
  description: "Operations about a DSpace metadata convertion to VIVO"
paths:
  /dspace/item:
    post:
      tags:
      - DSpace
      summary: "Translate DSpace-Item metadata to VIVO"
      description: ""
      operationId: "parseItem"
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Item'
        required: true
      responses:
        200:
          description: successful operation
          content:
            text/plain:
              schema:
                type: string
            application/ld+json:
              schema:
                type: string
            text/n3:
              schema:
                type: string
            text/turtle:
              schema:
                type: string
            text/owl-manchester:
              schema:
                type: string
            text/owl-functional:
              schema:
                type: string
            application/rdf+xml:
              schema:
                type: string
            application/owl+xml:
              schema:
                type: string
        default:
          description: unexpected error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
  /dspace/collection:
    post:
      tags:
      - DSpace
      summary: "Translate DSpace-Collection metadata to VIVO"
      description: ""
      operationId: "parseCollection"
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Collection'
        required: true
      responses:
        200:
          description:  successful operation
          content:
            text/plain:
              schema:
                type: string
            application/ld+json:
              schema:
                type: string
            text/n3:
              schema:
                type: string
            text/turtle:
              schema:
                type: string
            text/owl-manchester:
              schema:
                type: string
            text/owl-functional:
              schema:
                type: string
            application/rdf+xml:
              schema:
                type: string
            application/owl+xml:
              schema:
                type: string
        default:
          description: unexpected error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
components:
  schemas:
    Collection:
      type: object
      required:
        - id
        - uri
        - url
      properties:
        dspaceType:
          type: string
          readOnly: true
          default: collection
        id:
          type: string
          example: 123456789/2
        uri:
          type: string
          example: http://localhost:4000/handle/123456789/2
        url:
          type: string
          example: http://localhost:4000/items/948d534a-e1d9-41b2-bb23-1ae2fe9cff4f
        hasItem: 
          type: array
          items:
            $ref: '#/components/schemas/Item'
        isPartOfCommunityID: 
          type: array
          items:
            type: string
        listOfStatements:
          type: array
          items:
              $ref: '#/components/schemas/Statement'
        listOfStatementLiterals:
          type: array
          items:
              $ref: '#/components/schemas/StatementLiteral'
    Community:
      type: object
      required:
        - id
        - uri
        - url
      properties:
        dspaceType:
          type: string
          readOnly: true
          default: community
        id:
          type: string
          example: 123456789/1
        uri:
          type: string
          example: "http://localhost:4000/handle/123456789/1"        
        url:
          type: string
          example: "http://localhost:4000/communities/b278a9dd-9c63-4864-9c6e-0a6caa8ff459"        
        hasCollection:
          type: array
          items:
            $ref: '#/components/schemas/Collection'
          example: 123456789/2
        hasSubCommunity:
          type: array
          items:
            $ref: '#/components/schemas/Community'
        isSubcommunityOfID:
          type: array
          items:
            type: string
        isPartOfRepositoryID:
          items:
            type: string
        listOfStatements:
          type: array
          items:
              $ref: '#/components/schemas/Statement'
        listOfStatementLiterals:
          type: array
          items:
              $ref: '#/components/schemas/StatementLiteral'
    Repository:
      type: object
      required:
        - id
        - uri
      properties:
        dspaceType:
          type: string
          readOnly: true
          default: repository
        id:
          type: string
          example: 123456789/0
        uri:
          type: string
          example: "http://localhost:4000/handle/123456789/0"    
        hasCommunity:
          type: array
          items:
            $ref: '#/components/schemas/Community'
        listOfStatements:
          type: array
          items:
              $ref: '#/components/schemas/Statement'
        listOfStatementLiterals:
          type: array
          items:
              $ref: '#/components/schemas/StatementLiteral'
    Item: 
      type: object
      required:
        - id
        - uri
        - url
        - dspaceBitstreamURL
        - dspaceIsPartOfCollection
      properties:
        dspaceType:
          type: string
          readOnly: true
          default: item
        id:
          type: string
          example: 123456789/4
        dspaceBitstreamURL:
          type: string
          example: http://localhost:4000/bitstream/123456789/3/1/pdf1.pdf
        dspaceIsPartOfCollectionID:
          items:
            type: string
        uri:
          type: string
          example: http://localhost:4000/handle/123456789/3
        url:
          type: string
          example: http://localhost:4000/items/948d534a-e1d9-41b2-bb23-1ae2fe9cff4f
        listOfStatements:
          type: array
          items:
              $ref: '#/components/schemas/Statement'
        listOfStatementLiterals:
          type: array
          items:
              $ref: '#/components/schemas/StatementLiteral'
    Statement:
      type: object
      required:
        - subjectUri
        - predicateUri
        - objectUri
      properties:
        dspaceType:
          type: string
          readOnly: true
          default: statement
        subjectUri:
          type: string
          example: http://localhost:4000/handle/123456789/3
        predicateUri:
          type: string
          example: dcterms:isPartOf
        objectUri:
          type: string
          example: http://localhost:4000/handle/123456789/3
    StatementLiteral:
      type: object
      required:
        - subjectUri
        - predicateUri
        - objectLiteral
        - literalType
      properties:
        dspaceType:
          type: string
          readOnly: true
          default: statementLiteral
        subjectUri:
          type: string
          example: http://localhost:4000/handle/123456789/3
        predicateUri:
          type: string
          example: dc:creator
        objectLiteral:
          type: string
          example: "Michel Héon"
        literalType:
          type: string
          example: "xsd:string"
    Error:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: integer
          format: int32
        message:
          type: string

Java TestCode

package org.vivoweb.dspacevivo.model;

import org.apache.jena.vocabulary.XSD;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;

public class TestCollectionTaxonomy {

	public static void main(String[] args) throws JsonProcessingException {
		/*
		 * Entity declaration
		 */
		Repository rep0 = new Repository();
		rep0.setId("123456789_0");
		rep0.setUri("http://localhost:8080/server/rdf/resource/123456789/59");
		Community c1 = new Community();
		Community c2 = new Community();
		Community c58 = new Community();
		Community c59 = new Community();
		Community c60 = new Community();
		Community c65 = new Community();
		c1.setId("123456789_1");
		c2.setId("123456789_2");
		c58.setId("123456789_58");
		c59.setId("123456789_59");
		c60.setId("123456789_60");
		c65.setId("123456789_65");
		c1.setUri("http://localhost:8080/server/rdf/resource/123456789/1");
		c2.setUri("http://localhost:8080/server/rdf/resource/123456789/2");
		c58.setUri("http://localhost:8080/server/rdf/resource/123456789/58");
		c59.setUri("http://localhost:8080/server/rdf/resource/123456789/59");
		c60.setUri("http://localhost:8080/server/rdf/resource/123456789/60");
		c65.setUri("http://localhost:8080/server/rdf/resource/123456789/65");
		Collection col61 = new Collection();
		Collection col62 = new Collection();
		Collection col63 = new Collection();
		Collection col64 = new Collection();
		col61.setId("123456789_61");
		col62.setId("123456789_62");
		col63.setId("123456789_63");
		col64.setId("123456789_64");
		col61.setUri("http://localhost:8080/server/rdf/resource/123456789/61");
		col62.setUri("http://localhost:8080/server/rdf/resource/123456789/62");
		col63.setUri("http://localhost:8080/server/rdf/resource/123456789/63");
		col64.setUri("http://localhost:8080/server/rdf/resource/123456789/64");
		Item item66 = new Item();
		Item item68 = new Item();
		item66.setId("123456789_66");
		item68.setId("123456789_68");
		item66.setUri("http://localhost:8080/server/rdf/resource/123456789/56");
		item68.setUri("http://localhost:8080/server/rdf/resource/123456789/68");
		StatementLiteral item66Title = new StatementLiteral();
		item66Title.setSubjectUri(item66.getUri());
		item66Title.setPredicateUri("dcterm:title");
		item66Title.setObjectLiteral("Test paper");
		item66Title.setLiteralType(XSD.xstring.getURI());
		StatementLiteral item68Title = new StatementLiteral();
		item68Title.setSubjectUri(item68.getUri());
		item68Title.setPredicateUri("dcterm:title");
		item68Title.setObjectLiteral("Test thesis");
		item68Title.setLiteralType(XSD.xstring.getURI());
		/*
		 * Link Entities
		 */
		rep0.addHasCommunityItem(c1);
		rep0.addHasCommunityItem(c2);
		rep0.addHasCommunityItem(c58);
		/*******
		 * <http://localhost:8080/server/rdf/resource/123456789/58>
		 * dspace:hasCollection       
		 *          <http://localhost:8080/server/rdf/resource/123456789/61> , 
		 *          <http://localhost:8080/server/rdf/resource/123456789/62> , 
		 *          <http://localhost:8080/server/rdf/resource/123456789/63> ,
		 *          <http://localhost:8080/server/rdf/resource/123456789/64> ;
		 * dspace:hasSubcommunity     
		 *          <http://localhost:8080/server/rdf/resource/123456789/60> , 
		 *          <http://localhost:8080/server/rdf/resource/123456789/59> ;
		 * dspace:isPartOfRepository  
		 *          <http://localhost:8080/server/rdf/resource/123456789/0> ;
		 */
		c58.addHasCollectionItem(col61);
		c58.addHasCollectionItem(col62);
		c58.addHasCollectionItem(col63);
		c58.addHasCollectionItem(col64);
		c58.addHasSubCommunityItem(c60);
		c58.addHasSubCommunityItem(c59);
		c58.addIsPartOfRepositoryIDItem(rep0.getId());
		
		/*****
		 * <http://localhost:8080/server/rdf/resource/123456789/59>
		 * dspace:hasCollection     <http://localhost:8080/server/rdf/resource/123456789/61> , <http://localhost:8080/server/rdf/resource/123456789/62> ;
         * dspace:hasSubcommunity   <http://localhost:8080/server/rdf/resource/123456789/65> ;
         * dspace:isSubcommunityOf  <http://localhost:8080/server/rdf/resource/123456789/58> ;
		 */
		c59.addHasCollectionItem(col61);
		c59.addHasCollectionItem(col62);
		c59.addHasSubCommunityItem(c65);
		c59.addIsSubcommunityOfIDItem(c58.getId());
		/*******
		 * <http://localhost:8080/server/rdf/resource/123456789/60>
		 * dspace:hasCollection     
		 * 		<http://localhost:8080/server/rdf/resource/123456789/63> ,
		 * 		<http://localhost:8080/server/rdf/resource/123456789/64> ;
		 * dspace:isSubcommunityOf  
		 * 		<http://localhost:8080/server/rdf/resource/123456789/58> ;
		 */
		c60.addHasCollectionItem(col63);
		c60.addHasCollectionItem(col64);
		c60.addIsSubcommunityOfIDItem(c58.getId());
		/***************
		 * <http://localhost:8080/server/rdf/resource/123456789/61>
		 * 	dspace:hasItem <http://localhost:8080/server/rdf/resource/123456789/66> ;
		 * 	dspace:isPartOfCommunity  
		 * 		<http://localhost:8080/server/rdf/resource/123456789/59> , 
		 * 		<http://localhost:8080/server/rdf/resource/123456789/58> ;
		 */
		col61.addIsPartOfCommunityIDItem(c58.getId());
		col61.addIsPartOfCommunityIDItem(c59.getId());
		col61.addHasItemItem(item66);
		/********************
		 * <http://localhost:8080/server/rdf/resource/123456789/62>
		 * dspace:hasItem <http://localhost:8080/server/rdf/resource/123456789/68> ;
		 * dspace:isPartOfCommunity  
		 * 		<http://localhost:8080/server/rdf/resource/123456789/59> , 
		 * 		<http://localhost:8080/server/rdf/resource/123456789/58> ;
		 */
		col62.addHasItemItem(item68);
		col62.addIsPartOfCommunityIDItem(c59.getId());
		col62.addIsPartOfCommunityIDItem(c58.getId());
		/**********************
		 * <http://localhost:8080/server/rdf/resource/123456789/66>
		 * dspace:hasBitstream        <http://localhost:4000/bitstream/123456789/66/1/bubble-chart-line.png> ;
		 * dspace:isPartOfCollection  <http://localhost:8080/server/rdf/resource/123456789/61> ;
		 * dcterms:title              "Test paper" ;
		 */
		item66.setDspaceBitstreamURL("http://localhost:4000/bitstream/123456789/66/1/bubble-chart-line.png");
		item66.addDspaceIsPartOfCollectionIDItem(col61.getId());
		item66.addListOfStatementLiteralsItem(item66Title);
		/*****************
		 * <http://localhost:8080/server/rdf/resource/123456789/68>        
		 * dspace:hasBitstream        <http://localhost:4000/bitstream/123456789/68/1/bubble-chart-line.png> ;
		 * dspace:isPartOfCollection  <http://localhost:8080/server/rdf/resource/123456789/62> ;
		 * dcterms:title              "Test thesis" ;
		 */
		item68.setDspaceBitstreamURL("http://localhost:4000/bitstream/123456789/66/1/bubble-chart-line.png");
		item68.addDspaceIsPartOfCollectionIDItem(col62.getId());
		item68.addListOfStatementLiteralsItem(item68Title);
		/********
		 * DUMP Data and exit		
		 */
		TestCollectionTaxonomy.dump(rep0);

		
	}

	private static void dump(Repository rep0) throws JsonProcessingException {
		/***********
		 * Dump model
		 */
		ObjectMapper mapper = new ObjectMapper();
        String prettyStaff1 = mapper.writerWithDefaultPrettyPrinter().writeValueAsString(rep0);

        System.out.println(prettyStaff1);//
        System.exit(0);

		
	}

}

Execution Result

{
  "dspaceType" : "repository",
  "id" : "123456789_0",
  "uri" : "http://localhost:8080/server/rdf/resource/123456789/59",
  "hasCommunity" : [ {
    "dspaceType" : "community",
    "id" : "123456789_1",
    "uri" : "http://localhost:8080/server/rdf/resource/123456789/1",
    "url" : null,
    "hasCollection" : null,
    "hasSubCommunity" : null,
    "isSubcommunityOfID" : null,
    "isPartOfRepositoryID" : null,
    "listOfStatements" : null,
    "listOfStatementLiterals" : null
  }, {
    "dspaceType" : "community",
    "id" : "123456789_2",
    "uri" : "http://localhost:8080/server/rdf/resource/123456789/2",
    "url" : null,
    "hasCollection" : null,
    "hasSubCommunity" : null,
    "isSubcommunityOfID" : null,
    "isPartOfRepositoryID" : null,
    "listOfStatements" : null,
    "listOfStatementLiterals" : null
  }, {
    "dspaceType" : "community",
    "id" : "123456789_58",
    "uri" : "http://localhost:8080/server/rdf/resource/123456789/58",
    "url" : null,
    "hasCollection" : [ {
      "dspaceType" : "collection",
      "id" : "123456789_61",
      "uri" : "http://localhost:8080/server/rdf/resource/123456789/61",
      "url" : null,
      "hasItem" : [ {
        "dspaceType" : "item",
        "id" : "123456789_66",
        "dspaceBitstreamURL" : "http://localhost:4000/bitstream/123456789/66/1/bubble-chart-line.png",
        "dspaceIsPartOfCollectionID" : [ "123456789_61" ],
        "uri" : "http://localhost:8080/server/rdf/resource/123456789/56",
        "url" : null,
        "listOfStatements" : null,
        "listOfStatementLiterals" : [ {
          "dspaceType" : "statementLiteral",
          "subjectUri" : "http://localhost:8080/server/rdf/resource/123456789/56",
          "predicateUri" : "dcterm:title",
          "objectLiteral" : "Test paper",
          "literalType" : "http://www.w3.org/2001/XMLSchema#string"
        } ]
      } ],
      "isPartOfCommunityID" : [ "123456789_58", "123456789_59" ],
      "listOfStatements" : null,
      "listOfStatementLiterals" : null
    }, {
      "dspaceType" : "collection",
      "id" : "123456789_62",
      "uri" : "http://localhost:8080/server/rdf/resource/123456789/62",
      "url" : null,
      "hasItem" : [ {
        "dspaceType" : "item",
        "id" : "123456789_68",
        "dspaceBitstreamURL" : "http://localhost:4000/bitstream/123456789/66/1/bubble-chart-line.png",
        "dspaceIsPartOfCollectionID" : [ "123456789_62" ],
        "uri" : "http://localhost:8080/server/rdf/resource/123456789/68",
        "url" : null,
        "listOfStatements" : null,
        "listOfStatementLiterals" : [ {
          "dspaceType" : "statementLiteral",
          "subjectUri" : "http://localhost:8080/server/rdf/resource/123456789/68",
          "predicateUri" : "dcterm:title",
          "objectLiteral" : "Test thesis",
          "literalType" : "http://www.w3.org/2001/XMLSchema#string"
        } ]
      } ],
      "isPartOfCommunityID" : [ "123456789_59", "123456789_58" ],
      "listOfStatements" : null,
      "listOfStatementLiterals" : null
    }, {
      "dspaceType" : "collection",
      "id" : "123456789_63",
      "uri" : "http://localhost:8080/server/rdf/resource/123456789/63",
      "url" : null,
      "hasItem" : null,
      "isPartOfCommunityID" : null,
      "listOfStatements" : null,
      "listOfStatementLiterals" : null
    }, {
      "dspaceType" : "collection",
      "id" : "123456789_64",
      "uri" : "http://localhost:8080/server/rdf/resource/123456789/64",
      "url" : null,
      "hasItem" : null,
      "isPartOfCommunityID" : null,
      "listOfStatements" : null,
      "listOfStatementLiterals" : null
    } ],
    "hasSubCommunity" : [ {
      "dspaceType" : "community",
      "id" : "123456789_60",
      "uri" : "http://localhost:8080/server/rdf/resource/123456789/60",
      "url" : null,
      "hasCollection" : [ {
        "dspaceType" : "collection",
        "id" : "123456789_63",
        "uri" : "http://localhost:8080/server/rdf/resource/123456789/63",
        "url" : null,
        "hasItem" : null,
        "isPartOfCommunityID" : null,
        "listOfStatements" : null,
        "listOfStatementLiterals" : null
      }, {
        "dspaceType" : "collection",
        "id" : "123456789_64",
        "uri" : "http://localhost:8080/server/rdf/resource/123456789/64",
        "url" : null,
        "hasItem" : null,
        "isPartOfCommunityID" : null,
        "listOfStatements" : null,
        "listOfStatementLiterals" : null
      } ],
      "hasSubCommunity" : null,
      "isSubcommunityOfID" : [ "123456789_58" ],
      "isPartOfRepositoryID" : null,
      "listOfStatements" : null,
      "listOfStatementLiterals" : null
    }, {
      "dspaceType" : "community",
      "id" : "123456789_59",
      "uri" : "http://localhost:8080/server/rdf/resource/123456789/59",
      "url" : null,
      "hasCollection" : [ {
        "dspaceType" : "collection",
        "id" : "123456789_61",
        "uri" : "http://localhost:8080/server/rdf/resource/123456789/61",
        "url" : null,
        "hasItem" : [ {
          "dspaceType" : "item",
          "id" : "123456789_66",
          "dspaceBitstreamURL" : "http://localhost:4000/bitstream/123456789/66/1/bubble-chart-line.png",
          "dspaceIsPartOfCollectionID" : [ "123456789_61" ],
          "uri" : "http://localhost:8080/server/rdf/resource/123456789/56",
          "url" : null,
          "listOfStatements" : null,
          "listOfStatementLiterals" : [ {
            "dspaceType" : "statementLiteral",
            "subjectUri" : "http://localhost:8080/server/rdf/resource/123456789/56",
            "predicateUri" : "dcterm:title",
            "objectLiteral" : "Test paper",
            "literalType" : "http://www.w3.org/2001/XMLSchema#string"
          } ]
        } ],
        "isPartOfCommunityID" : [ "123456789_58", "123456789_59" ],
        "listOfStatements" : null,
        "listOfStatementLiterals" : null
      }, {
        "dspaceType" : "collection",
        "id" : "123456789_62",
        "uri" : "http://localhost:8080/server/rdf/resource/123456789/62",
        "url" : null,
        "hasItem" : [ {
          "dspaceType" : "item",
          "id" : "123456789_68",
          "dspaceBitstreamURL" : "http://localhost:4000/bitstream/123456789/66/1/bubble-chart-line.png",
          "dspaceIsPartOfCollectionID" : [ "123456789_62" ],
          "uri" : "http://localhost:8080/server/rdf/resource/123456789/68",
          "url" : null,
          "listOfStatements" : null,
          "listOfStatementLiterals" : [ {
            "dspaceType" : "statementLiteral",
            "subjectUri" : "http://localhost:8080/server/rdf/resource/123456789/68",
            "predicateUri" : "dcterm:title",
            "objectLiteral" : "Test thesis",
            "literalType" : "http://www.w3.org/2001/XMLSchema#string"
          } ]
        } ],
        "isPartOfCommunityID" : [ "123456789_59", "123456789_58" ],
        "listOfStatements" : null,
        "listOfStatementLiterals" : null
      } ],
      "hasSubCommunity" : [ {
        "dspaceType" : "community",
        "id" : "123456789_65",
        "uri" : "http://localhost:8080/server/rdf/resource/123456789/65",
        "url" : null,
        "hasCollection" : null,
        "hasSubCommunity" : null,
        "isSubcommunityOfID" : null,
        "isPartOfRepositoryID" : null,
        "listOfStatements" : null,
        "listOfStatementLiterals" : null
      } ],
      "isSubcommunityOfID" : [ "123456789_58" ],
      "isPartOfRepositoryID" : null,
      "listOfStatements" : null,
      "listOfStatementLiterals" : null
    } ],
    "isSubcommunityOfID" : null,
    "isPartOfRepositoryID" : [ "123456789_0" ],
    "listOfStatements" : null,
    "listOfStatementLiterals" : null
  } ],
  "listOfStatements" : null,
  "listOfStatementLiterals" : null
}


  • No labels