Difference between revisions of "Facet Based Resource Model"

From Gcube Wiki
Jump to: navigation, search
(Relation Property)
(Complex Types)
 
(840 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
<!-- CATEGORIES -->  
 
<!-- CATEGORIES -->  
<!-- [[Category: gCube Features]] -->
+
[[Category: gCube Features]]
 +
[[Category: Developer's Guide]]
 +
[[Category: Information System]]
 
<!-- CATEGORIES -->
 
<!-- CATEGORIES -->
 
{| align="right"
 
{| align="right"
Line 6: Line 8:
 
|}
 
|}
  
== Basic Concepts ==
+
The Information System Model (henceforth IS Model) is used by [[Information System Resource Registry]]
  
* Two typologies of '''entities''' are envisaged:
+
== Disclaimer ==
** '''[[#Resources | Resources]]''', i.e. entities representing a description of "thing" to be managed; 
+
** '''[[#Facets | Facets]]''', i.e. entities contributing to "build" a description of a Resource. Every facet, once attached to a Resource profile captures a certain aspect / characterization of the resource; 
+
*** Every facet is characterised by a number of fields / attributed;
+
* Two typologies of '''relations''' are envisaged:
+
** '''[[#RelatedTo | RelatedTo]]''', i.e. a relation linking any two [[#Resources | Resources]].
+
** '''[[#ConsistOf | ConsistOf]]''', i.e. a relation connecting each [[#Resources | Resource]] with one of the [[#Facets | Facets]] characterizing it;
+
* Entities and relations can be '''specialized'''.
+
** A number of specializations are identified below. Such specializations are managed by the gCube Core services, i.e. Core services builds upon these specialization to realize its management tasks;   
+
** Other specializations can be defined by clients, the system make it possible to store these additional typologies of relations and facets and to discover them.
+
* On relations:
+
** Any relation has a direction, i.e. a "source" and a "target". Anyway the relation can be also navigated in the opposite direction;
+
** It is not permitted to define a Relation having a Facet as "source".
+
*** It is not permitted to define a Relation connecting a Facet with another one;
+
*** It is not permitted to define a Relation connecting a Facet with a Resource;
+
** A Facet instance can be linked (by [[#ConsistOf | ConsistOf]] or any specialization of it) from different Resources.
+
  
=== Header ===
+
This Model is part of research conducted in the context of a PhD.
 +
This wiki page represents just a partial view of the full rationale of the research.
 +
To have a complete overview of the rationale of the model, please refer to the PhD thesis which is publicly available at:
  
Every Entity and Relation has an Header automatically filled by the System. The Header has the following properties:
+
https://etd.adm.unipi.it/t/etd-05102019-114151/
{|class="wikitable"
+
! Name
+
! Type
+
! Description
+
|-
+
| uuid
+
| UUID
+
| This uuid can be used to univocally identify the Entity or the Relation
+
|-
+
| creator
+
| String
+
| Filled at creation time. The creator is retrieved using the authorization token
+
|-
+
| creationTime
+
| Long
+
| Creation time in milliseconds. Represent the difference, measured in milliseconds, between the creation time and midnight, January 1, 1970 UTC
+
|-
+
| lastUpdateTime
+
| Long
+
| Last Update time in milliseconds. Represent the difference, measured in milliseconds, between the last update time and midnight, January 1, 1970 UTC
+
|}
+
  
== Facets ==
+
https://openportal.isti.cnr.it/doc?id=people______::470484e51fcb9e307a418c800efc44c8
  
Early ideas and thinking on facets were documented at [[Resource_Model_(2nd_generation)#Facets | 2nd Generation Resource Model : Facets]]
 
  
=== Facets Specification ===
+
If you need to refer to such work you can cite the PhD Thesis.
  
Every Facet has:
+
BibText:
* An [[#Header | Header]]
+
* Zero or More properties
+
  
Any property can be enriched with the following attributes:
+
<pre>
* '''Name''' : Property Name
+
@phdthesis{frosini2019transactional,
* '''Type''' : The Type of the Property (e.g. String, Integer, ...).
+
  title={Transactional REST Information System for Federated Research Infrastructures enabling Virtual Research Environments},
* '''Description''' : The description of the property. <code>default=null</code>.
+
  author={Frosini, Luca},
* '''Mandatory''' ('''M'''): Indicate if the Property is Mandatory. <code>default=false</code>.
+
  year={2019},
* '''ReadOnly''' ('''RO'''): The property cannot change its value. <code>default=false</code>.
+
  school={UNIVERSIT{\`A} DI PISA}
* '''NotNull''' ('''NN'''): <code>default=false</code>
+
}
* '''Max''' ('''Max'''): <code>default=null</code>
+
</pre>
* '''Min''' ('''Min'''): <code>default=null</code>
+
* '''Regexpr''' ('''Reg''')): A [https://en.wikipedia.org/wiki/Regular_expression Regular Expression] to validate the property value.<code>default=null</code>
+
  
 +
An previous paper about this work is:
  
==== Access Point Facet ====
+
BibText:
  
The goal of this facet is expected to capture information on “access points” for a resource, i.e. any endpoint to interact with the resource via a known protocol.
+
<pre>
 +
@article{frosini2018facet,
 +
  title={A Facet-based Open and Extensible Resource Model for Research Data Infrastructures.},
 +
  author={Frosini, Luca and Pagano, Pasquale},
 +
  journal={Grey Journal (TGJ)},
 +
  volume={14},
 +
  number={2},
 +
  year={2018}
 +
}
 +
</pre>
  
{|class="wikitable"
+
== IS Model ==
! Name
+
! Type
+
! Description
+
! Attributes
+
|-
+
| entryName
+
| String
+
| An unique identifier
+
|
+
|-
+
| endpoint
+
| URI
+
| The URI which identify the endpoint of a resource
+
| <code>Mandatory=true</code> <code>ReadOnly=true</code> <code>NotNull=true</code>
+
|-
+
| protocol
+
| String
+
| The high-level protocol used by the access point. The String could contains the version if needed.
+
E.g. WMS not http which is already contained in URI.
+
|
+
|-
+
| description
+
| String
+
| .....
+
|
+
|-
+
| authorization
+
| String
+
| Contains authorization information. E.g: a token, username:password. By relying on schema it should be sufficient to capture also whether the content is encrypted or not
+
|
+
|-
+
| authorizationSchema
+
| URI
+
| ....
+
|
+
|-
+
| properties
+
| String
+
| This can be an arbitrarily complex element whose "structure" is defined by the associated schema
+
|
+
|-
+
| propertiesSchema
+
| URI
+
| ....
+
|
+
|}
+
  
==== Contact Facet ====
+
The [[#IS_Model|Information System Model]] (henceforth IS Model) is a graph model with Entities as nodes and Relations as edges.
  
The goal of this facet is expected to capture contact information.
+
[[File:Is-model.png|800px]]
 +
<br /> <br />
 +
[[File:Is-model-er.png|500px]]
  
{|class="wikitable"
+
* Two typologies of '''entities''' are envisaged:
! Name
+
** '''[[#Resources | Resources]]''', i.e. entities representing a description of "thing" to be managed; 
! Type
+
*** Every Resource is described by a number of [[#Facets | Facets]].
! Description
+
** '''[[#Facets | Facets]]''', i.e. entities contributing to "build" a description of a Resource. Every facet, once attached to a Resource profile captures a certain aspect / characterization of the resource; 
! Attributes
+
*** Every facet is characterised by a number of [[#Properties| properties]];
|-
+
| title
+
| String
+
| e.g. Dr., Mrs, Mr,
+
| <code>Mandatory=false</code>
+
|-
+
| name
+
| String
+
|
+
| <code>Mandatory=true</code> <code>NotNull=true</code>
+
|-
+
| middleName
+
| String
+
|
+
| <code>Mandatory=false</code>
+
|-
+
| surname
+
| String
+
|
+
| <code>Mandatory=true</code> <code>NotNull=true</code>
+
|-
+
| eMail
+
| String
+
| An RFC‑822 compliant email address.  
+
| <code>Mandatory=true</code> <code>NotNull=true</code> <code>Regex see http://www.ex-parrot.com/~pdw/Mail-RFC822-Address.html</code>
+
|-
+
| website
+
| URL
+
| ...
+
|
+
|-
+
| address
+
| String
+
| ...
+
|
+
|-
+
| phone
+
| String
+
| ...
+
|
+
|}
+
  
==== Coverage Facet ====
+
* Two typologies of '''[[#Relations|relations]]''' are envisaged:
 +
** '''[[#isRelatedTo | isRelatedTo]]''', i.e. a relation linking any two [[#Resources | Resources]].
 +
** '''[[#ConsistsOf | ConsistsOf]]''', i.e. a relation connecting each [[#Resources | Resource]] with one of the [[#Facets | Facets]] characterizing it;
  
The goal of this facet is to collect any ''extent''-related information.
+
* Each entity and relation
 +
** has an '''[[#Header|header]]''' automatically generated for the sake of identification and provenance of the specific information;
 +
** can be '''specialized'''
 +
*** A number of specializations are identified below. Such specializations are managed by the gCube Core services, i.e. Core services builds upon these specializations to realize its management tasks;   
 +
*** Other specializations can be defined by clients, the system make it possible to store these additional typologies of relations and facets and to discover them.
 +
* Facet and Relation instances can have additional [[#Properties| properties]] which are not defined in the schema (henceforth schema-mixed mode).
 +
* On relations:
 +
** Any relation has a direction, i.e. a "source" ('''out''' bound of the relation) and a "target" ('''in''' bound of the relation). Anyway, the relation can be also navigated in the opposite direction;
 +
** It is not permitted to define a Relation having a Facet as "source". In other words:
 +
*** It is not permitted to define a Relation connecting a Facet with another one;
 +
*** It is not permitted to define a Relation connecting a Facet with a Resource (as target);
 +
** A Facet instance can be linked (by [[#ConsistsOf | ConsistsOf]] or any specialization of it) from different Resources.
  
{|class="wikitable"
+
We derived the term Facet directly from the dictionary definition. Merriam Webster Dictionary defines facet as “any of the definable aspects that make up a subject (as of contemplation) or an object (as of consideration)”<ref>https://www.merriam-webster.com/dictionary/facet</ref>.  
! Name
+
The Free Dictionary defines a facet as “One of numerous aspects, as of a subject” <ref>https://www.thefreedictionary.com/facet</ref>.
! Type
+
! Description
+
! Attributes
+
|-
+
| spatial
+
| String
+
| ...
+
|
+
|-
+
| spatialSchema
+
| URI
+
| ...
+
|
+
|-
+
| temporal
+
| String
+
| ...
+
|
+
|-
+
| temporalSchema
+
| URI
+
| .....
+
|
+
|}
+
  
==== CPU Facet ====
 
  
The goal of this facet is to describe CPU information.
+
=== Type Attributes ===
  
{|class="wikitable"
+
Any attribute defined in the type schema is characterised by:
! Name
+
! Type
+
! Description
+
! Attributes
+
|-
+
| model
+
| String
+
| ...
+
|
+
|-
+
| vendor
+
| String
+
| ...
+
|
+
|-
+
| clockSpeed
+
| String
+
| ...
+
|
+
|}
+
  
==== Descriptive Metadata Facet ====
+
* '''Name''' : Property Name
 +
* '''Type''' : The Type of the Property (e.g. String, Integer, ...). It can be a [[#Basic_Types|Basic Type]] or a [[#Derived_Types|Derived Type]] or a [[#Complex_Types|Complex Type]]
 +
* '''Description''' : The description of the Property. <code>default=null</code>.
 +
* '''Mandatory''' ('''M'''): Indicate if the Property is mandatory. <code>default=false</code>.
 +
* '''ReadOnly''' ('''RO'''): The Property cannot change its value. <code>default=false</code>.
 +
* '''NotNull''' ('''NN'''): Whether the property must assume a value diverse from 'null' or not. <code>default=false</code>
 +
* '''Max''' ('''Max'''): <code>default=null</code>
 +
* '''Min''' ('''Min'''): <code>default=null</code>
 +
* '''Regex''' ('''Reg''')): A [https://en.wikipedia.org/wiki/Regular_expression Regular Expression] to validate the property value, <code>default=null</code>. A good online tool for regex is avalable at [https://regex101.com/ https://regex101.com/]
  
The goal of this facet is to collect any descriptive metadata about the resource.
+
==== Basic Types ====
  
 
{|class="wikitable"
 
{|class="wikitable"
! Name
+
! Type
! Type
+
! Java type
! Description
+
! Description  
! Attributes
+
 
|-
 
|-
| value
+
| Boolean
| String
+
| <code>java.lang.Boolean</code> or <code>boolean</code>
| Inherited. E.g. XML Blob
+
| Handles only the values <em>True</em> or <em>False</em>.
|  
+
 
|-
 
|-
| schema
+
| Integer
| URI
+
| <code>java.lang.Integer</code> or <code>int</code> or  <code>java.math.BigInteger</code>
| ...
+
| 32-bit signed Integers.
|
+
|}
+
 
+
==== Event Facet ====
+
 
+
The goal of this facet is to collect any descriptive metadata about the resource.
+
 
+
{|class="wikitable"
+
! Name
+
! Type
+
! Description
+
! Attributes
+
 
|-
 
|-
| type
+
| Short
| String
+
| <code>java.lang.Short</code> or <code>short</code>
| ...
+
| Small 16-bit signed integers.
|
+
 
|-
 
|-
| typeSchema
+
| Long
| URI
+
| <code>java.lang.Long</code> or <code>long</code>
| ...
+
| Big 64-bit signed integers.
|
+
 
|-
 
|-
| date
+
| Float
| String
+
| <code>java.lang.Float</code> or <code>float</code>
| ...
+
| Decimal numbers.
|
+
 
|-
 
|-
| dateSchema
+
| Double
| URI
+
| <code>java.lang.Double</code> or <code>double</code>
| ...
+
| Decimal numbers with high precision.
|
+
|}
+
 
+
==== Functionality Related Facet ====
+
 
+
The goal of this facet is to capture what are the facilities supported ('''Challenging because of the different audiences''')
+
Something very "poor" ... we can have a look at WPS spec
+
 
+
{|class="wikitable"
+
! Name
+
! Type
+
! Description
+
! Attributes
+
 
|-
 
|-
| name
+
| Date
| String
+
| <code>java.util.Date</code>
| ...
+
| Any date with the precision up to milliseconds.
|
+
 
|-
 
|-
| description
 
 
| String
 
| String
| ...
+
| <code>java.lang.String</code>
|
+
| Any string as alphanumeric sequence of chars.
 
|-
 
|-
| input
+
| Byte
| String
+
| <code>java.lang.Byte</code> or <code>byte</code>
| ...
+
| Single byte. useful to store small 8-bit signed integers.
|
+
 
|-
 
|-
| output
+
| Binary
| String
+
| <code>java.lang.Byte[]</code> or <code>byte[]</code>
| ...
+
| Can contain any value as byte array.
|
+
 
|}
 
|}
  
==== Identifier Facet ====
+
==== Derived Types ====
  
The goal of this facet is to collect information on Identifiers that can be attached to a resource.
+
The following are obtained using a String as real type and adding a validation regex.
  
 
{|class="wikitable"
 
{|class="wikitable"
! Name
+
! Type
! Type
+
! Java type
! Description
+
! Description  
! Attributes
+
 
|-
 
|-
| value
+
| Enum
| String
+
| <code>java.lang.Enum</code> or <code>enum</code>
| The identifier. E.g. http://fr.dbpedia.org/resource/Thunnus de305d54-75b4-431b-adb2-eb6b9e546014
+
| by default it is represented using the String representation of the Enum. So that the primitive type used will be String. The enumeration is checked by setting <code>Regexpr</code> property. The Regular Expression is auto-generated and it will be something like '''<code>^(FIRST-ENUM-STRING_REPRESENTATION<nowiki>|</nowiki>SECOND-ENUM-STRING_REPRESENTATION<nowiki>|</nowiki>...<nowiki>|</nowiki>LAST_ENUM_STRING_REPRESENTATION)$</code>'''.
|
+
Otherwise (if indicated using an annotation), it can be represented using the Integer value of the Enum. So that the primitive type used will be Integer. The enumeration is checked using <code>Max</code> and <code>Min</code> properties.
 
|-
 
|-
| type
+
| UUID
| Enumeration
+
| <code>java.util.UUID</code>
| The typology of identifier. i.e. URI, DOI, IRI, URL, URN, UUID;
+
| String representation of the UUID. The check is obtained using the regular expression '''<code>^([a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}){1}$</code>'''
|  
+
 
|-
 
|-
| isPersistent
+
| URL
| boolean
+
| <code>java.net.URL</code>
| To indicate if the Identifier is persistent or not.  
+
| String representation of the URL. No check actually.
|
+
|}
+
 
+
==== Location Facet ====
+
 
+
The goal of this facet is to collect information about Location
+
 
+
{|class="wikitable"
+
! Name
+
! Type
+
! Description
+
! Attributes
+
 
|-
 
|-
| Country
+
| URI
| String
+
| <code>java.net.URI</code>
| ...
+
| String representation of the URI. No check actually.
| ...
+
 
|-
 
|-
| Location
+
| TypeVersion
| String
+
| <code>org.gcube.informationsystem.utils.TypeVersion</code>
| ...
+
| A type representing and validating a version in the following format X.X.X Major(Integer).Minor(Integer).Revision(Integer) (e.g 1.0.0, 2.3.0, 2.0.1). The check is obtained using the regular expression '''<code>^[1-9][0-9]{0,}\.(0<nowiki>|</nowiki>([1-9][0-9]{0,}))\.(0<nowiki>|</nowiki>([1-9][0-9]{0,}))$</code>'''.
| ...
+
|-
+
| Latitude
+
| String
+
| ...
+
| ...
+
|-
+
| Longitude
+
| String
+
| ...
+
| ...
+
 
|}
 
|}
  
==== Network Address Facet ====
+
==== Complex Types ====
  
The goal of this facet is to capture IP information
+
Any property defined by composing basic types, complex types and other complex types. Any complex type can be defined by extending [[#Property|Property]] type.
  
 
{|class="wikitable"
 
{|class="wikitable"
! Name
+
! Type
! Type
+
! Java type
! Description
+
! Description  
! Attributes
+
 
|-
 
|-
| hostName
+
| Property
| String
+
| <code>?  extends org.gcube.informationsystem.model.reference.properties.Property</code>
| ...
+
| This is an Object contained inside the owner Entity and has no [[#Header|Header]]. It is reachable only by navigating the owner Entity/Relation.
|
+
 
|-
 
|-
| domainName
+
| <del>Property list</del>
| String
+
| <del><code>List&lt;?  extends org.gcube.informationsystem.model.reference.properties.Property&gt;</code></del>
| ...
+
| <del>List of Objects contained inside the owner Entity and have no [[#Header|Header]]. They are reachable only by navigating the owner Entity/Relation.</del>
|
+
 
|-
 
|-
| IPAddress
+
| <del>Property set</del>
| String
+
| <del><code>Set&lt;? org.gcube.informationsystem.model.reference.properties.Property&gt;</code></del>
| ...
+
| <del>Set (no duplicates) of Objects contained inside the owner Entity and have no [[#Header|Header]]. They are reachable only by navigating the owner Entity/Relation.</del>
|
+
 
|-
 
|-
| mask
+
| Property map
| String
+
| <code>Map&lt;String, ? extends org.gcube.informationsystem.model.reference.properties.Propertyd&gt;</code>
| ...
+
| Map of Objects contained inside the owner Entity and have no [[#Header|Header]]. They are reachable only by navigating the owner Entity/Relation.
|
+
|-
+
| broadcastAddress
+
| String
+
| ...
+
|
+
 
|}
 
|}
  
Regular expression to validate different IPv4 addresses are available at:
+
=== Property ===
  
http://www.regextester.com/22
+
It does not define any field. It is just used as a base class.
  
https://www.safaribooksonline.com/library/view/regular-expressions-cookbook/9780596802837/ch07s16.html
+
The Java Interface declaration for such a type is available at:
  
Both IPv4 and IPv6:
+
https://code-repo.d4science.org/gCubeSystem/information-system-model/src/branch/master/src/main/java/org/gcube/informationsystem/model/reference/properties/Property.java
http://stackoverflow.com/questions/53497/regular-expression-that-matches-valid-ipv6-addresses
+
  
==== License Facet ====
+
===== Header =====
  
The goal of this facet is to .....
+
Every Entity and Relation has an Header automatically created/updated by the System.
  
 
{|class="wikitable"
 
{|class="wikitable"
 +
|+ Header <code>''extends''</code> Property
 
! Name
 
! Name
 
! Type
 
! Type
! Description
 
 
! Attributes
 
! Attributes
 +
! Description
 
|-
 
|-
| value
+
| uuid
 +
| UUID
 +
| <code>Mandatory=true</code> <br/><code>NotNull=true</code> <br/><code>ReadOnly=true</code>
 +
| This UUID is be used to identify the Entity or the Relation univocally.
 +
|-
 +
| createdBy
 
| String
 
| String
| ...
+
| <code>Mandatory=true</code> <br/><code>NotNull=true</code> <br/><code>ReadOnly=true</code>
|
+
| The user that created the Entity or the Relation. It is initialized at creation time.
 
|-
 
|-
| schema
+
| creationTime
| URI
+
| Date
| Licence URI
+
| <code>Mandatory=true</code> <br/><code>NotNull=true</code> <br/><code>ReadOnly=true</code>
|
+
| Creation time.
|}
+
 
+
==== Memory Facet ====
+
 
+
The goal of this facet is to .....
+
 
+
{|class="wikitable"
+
! Name
+
! Type
+
! Description
+
! Attributes
+
 
|-
 
|-
| size
+
| lastUpdateBy
| Long
+
| String
| ...
+
| <code>Mandatory=true</code> <br/><code>NotNull=true</code>
|
+
| The user that made the last update to the Entity or the Relation. At creation time, it assumes the same value of creator.
 
|-
 
|-
| used
+
| lastUpdateTime
| Long
+
| Date
| ...
+
| <code>Mandatory=true</code> <br/><code>NotNull=true</code>
|
+
| Last Update time. At creation time it assumes the same value of creationTime.
|-
+
| unit
+
| String
+
| ...
+
|
+
 
|}
 
|}
  
==== Peripheral Facet ====
 
  
The goal of this facet is to .....
+
The Java Interface declaration for such a type is available at:
  
{|class="wikitable"
+
https://code-repo.d4science.org/gCubeSystem/information-system-model/src/branch/master/src/main/java/org/gcube/informationsystem/model/reference/properties/Header.java
! Name
+
! Type
+
! Description
+
! Attributes
+
|-
+
| model
+
| String
+
| ...
+
|
+
|-
+
| vendor
+
| String
+
| ...
+
|
+
|}
+
  
==== Provenance Facet ====
+
===== PropagationConstraint =====
  
The goal of this facet is to collect information related with resource lineage/provenance
+
At any time entities and relations can be added or removed to/from a context or deleted.
 +
The PropagationConstraint property contained in each relation is a predefined Property type which indicates the behaviour to be held on a target entity when an event related to a context occurs in the source resource or directly to the relation.
  
 
{|class="wikitable"
 
{|class="wikitable"
 +
|+ PropagationConstraint <code>''extends''</code> Property
 
! Name
 
! Name
 
! Type
 
! Type
! Description
 
 
! Attributes
 
! Attributes
 +
! Description
 
|-
 
|-
| relationship
+
| remove
 
| Enum
 
| Enum
| .... E.g. wasDerivedFrom | wasGeneratedBy | ...
+
| <code>Regex=(cascadeWhenOrphan<nowiki>|</nowiki>cascade<nowiki>|</nowiki>keep)</code>
|
+
| It indicates the behaviour to implement for the target Entity when a 'remove' action is performed on the source Resource. Remove actions are: (i) the operation of removing an instance from a context; (ii) the operation of deleting an instance (it has an impact on all contexts).
 
|-
 
|-
| reference
+
| add
| String
+
| Enum
| resourceID (a reference to the "originator" Resource associated to the resource the facet is attached to by the relationship)
+
| <code>Regex=(propagate<nowiki>|</nowiki>unpropagate)</code>
|
+
| It indicates the behaviour to implement for the target Entity when an 'add' action is performed on the source Resource. Add action is the operation of adding an instance to a context.
|-
+
| provenanceDocument
+
| String
+
| ... E.g. the xml format
+
|
+
|-
+
| provenanceDocumentSchema
+
| String
+
| ... E.g. a reference to the format
+
|
+
 
|}
 
|}
  
==== Simple Property Facet ====
 
  
The goal of this facet is the base class for all facets described by a value and the schema of the value
+
Remove values;
 +
* cascadeWhenOrphan: When a remove action is performed on the source Entity of the relation, or directly on the relation, then the same remove action apart on the relation is performed to the target entity if it has no other incoming relations.
 +
* cascade: When a remove action is performed on the source Entity of the relation, or directly on the relation, then the same remove action is performed on the relation and its target entity.
 +
* keep: When a remove action is performed on the source Entity of the relation, or directly on the relation, then the same remove action is performed on relation but never to the target entity.
  
{|class="wikitable"
 
! Name
 
! Type
 
! Description
 
! Attributes
 
|-
 
| name
 
| String
 
| ...
 
|
 
|-
 
| value
 
| String
 
| ...
 
|
 
|}
 
  
==== Software Facet ====
+
Add values;
  
The goal of this facet is to capture SW related features"
+
* propagate: When an 'add' action is performed on the source Entity of the relation, or directly on the relation, then the same add action is performed on the relation and its target Entity.
 +
* unpropagate: When an 'add' action is performed on the source Entity of the relation, is performed on source relation only. Trying to perform an 'add' action on the relation has no effects.
  
{|class="wikitable"
 
! Name
 
! Type
 
! Description
 
! Attributes
 
|-
 
| name
 
| String
 
| The name of the software artefact being described. E.g. artifactId in maven, Service Name in gCube software, the software name for retail software Microsoft '''Office''' 2013-SP2.
 
|
 
|-
 
| group
 
| String
 
| The name of "group" the software artefact belongs to. E.g. groupId in Maven, ServiceClass in gCube software, company name for retail software '''Microsoft''' Office 2013-SP2.
 
|
 
|-
 
| version
 
| String
 
| The particular release of the software artefact. E.g. maven version, Service Version in gCube software, artifactId in maven, the software version for retail software Microsoft Office '''2013-SP2'''.
 
|
 
|-
 
| description
 
| String
 
| A human oriented description of the software artefact being described.
 
|
 
|-
 
| qualifier
 
| String
 
| E.g. packaging or scope in maven, scope level or sharable level in gCube software, target architecture for retail software x86 or amd64.
 
|
 
|-
 
| optional
 
| boolean
 
| .... Used in maven and in gcube
 
|
 
|}
 
  
==== State Facet ====
+
Any [[#Relation|Relation]] contains such a property. If the values are not specified at creation time the system initialize it with the following rules:
  
The goal of this facet is to ...
+
* [[#ConsistsOf | ConsistsOf Relation]] : <code>remove=cascade</code>, <code>add=propagate</code>
 +
* [[#isRelatedTo | IsRelatedTo Relation]] : <code>remove=keep</code>, <code>add=unpropagate</code>
  
{|class="wikitable"
 
! Name
 
! Type
 
! Description
 
! Attributes
 
|-
 
| value
 
| String
 
| The value of the state. Must be compliant with schema.
 
| <code>Mandatory=true</code> <code>NotNull=true</code>
 
|}
 
  
===== Service State Facet =====
+
The Java Interface declaration for such a type is available at:
  
{|class="wikitable"
+
https://code-repo.d4science.org/gCubeSystem/information-system-model/src/branch/master/src/main/java/org/gcube/informationsystem/model/reference/properties/PropagationConstraint.java
! Name
+
! Type
+
! Description
+
! Attributes
+
|-
+
| value
+
| String
+
| The value of the state
+
| <code>Mandatory=true</code> <code>NotNull=true</code> <code>Regex=(STARTED<nowiki>|</nowiki>ready<nowiki>|</nowiki>down<nowiki>|</nowiki>failed)</code>
+
|}
+
  
===== Container State Facet =====
+
===== Encrypted =====
  
 
{|class="wikitable"
 
{|class="wikitable"
 +
|+ Encrypted <code>''extends''</code> Property
 
! Name
 
! Name
 
! Type
 
! Type
! Description
 
 
! Attributes
 
! Attributes
 +
! Description
 
|-
 
|-
 
| value
 
| value
 
| String
 
| String
| The value of the state
+
|
| <code>Mandatory=true</code> <code>NotNull=true</code> <code>Regex=(started<nowiki>|</nowiki>ready<nowiki>|</nowiki>certified<nowiki>|</nowiki>down<nowiki>|</nowiki>failed)</code>
+
| The encrypted value. The resource registry store safely the value. When received the value is decrypted using the key of current context and store the value safely. When the value is read, the resource-registry retrieve the value and  encrypt it with the key of current context.
 
|}
 
|}
  
==== Subject Facet ====
+
The Java Interface declaration for such a type is available at:
 +
 
 +
https://code-repo.d4science.org/gCubeSystem/information-system-model/src/branch/master/src/main/java/org/gcube/informationsystem/model/reference/properties/Encrypted.java
 +
 
 +
=== Entity ===
  
The goal of this facet is to ...
 
  
 
{|class="wikitable"
 
{|class="wikitable"
! Name
+
|+ <code>Abstract</code> Entity
! Type
+
! Description
+
! Attributes
+
 
|-
 
|-
| value
+
| colspan=5 | '''Goal:''' This is the base type for any entity.
| String
+
|-
| The value of the state. Must be compliant with schema.
+
! colspan=5 | Properties
| <code>Mandatory=true</code> <code>NotNull=true</code>
+
 
|-
 
|-
| schema
 
| URI
 
| The URI of the schema. It is only an informative field. It is not used for validation from IS part.
 
| <code>Mandatory=true</code> <code>NotNull=true</code>
 
|}
 
 
== Relation ==
 
 
Every Facet has:
 
* An [[#Header | Header]]
 
* A [[#Relation_Property|RelationProperty]]
 
* Zero or More properties (not necessarily predefined) similarly to facet.
 
 
=== Relation Property ===
 
 
{|class="wikitable"
 
 
! Name
 
! Name
 
! Type
 
! Type
! Description
+
! Attributes
 +
! colspan=2 | Description
 
|-
 
|-
| referentialIntegrity
+
| header
| Enum
+
| [[#Header | Header]]
| I.e. onDeleteCascadeWhenOrphan, onDeleteCascade, onDeleteKeep. The meaning is related to the relation direction.
+
| <code>Mandatory=true</code> <br/><code>NotNull=true</code> <br/><code>ReadOnly=true</code>
|-
+
| colspan=2 | A distinguishing string to be used by clients to identify the access point of interest.  
| accessPolicy
+
| Access Policy Type
+
| A policy is characterized by a name, a description, and the period ([start], [end]) when the policies apply
+
|-
+
| expiryTime
+
| Long
+
| The expiry date can be used to model the time until the relationship is valid, Expiry time in milliseconds. Represent the difference, measured in milliseconds, between the creation time and midnight, January 1, 1970 UTC
+
 
|}
 
|}
  
=== RelatedTo ===
+
The Java Interface declaration for such a type is available at:  
The following relations (extending the '''RelatedTo''') have been identified and defined:
+
  
* <div id="CallFor">'''CallFor''': [[#Service|Service]] to [[#Service|Service]]</div>
+
https://code-repo.d4science.org/gCubeSystem/information-system-model/src/branch/master/src/main/java/org/gcube/informationsystem/model/reference/entities/Entity.java
  
* <div id="ConfiguredBy">'''ConfiguredBy''': [[#Software|Software]] to [[#Configuration|Configuration]]</div>
+
==== Resource ====
  
* <div id="CorrelatedTo">'''CorrelatedTo''': [[#Dataset|Dataset]] to [[#Dataset|Dataset]]</div>
 
** <div id="PartOf">'''PartOf''': [[#Concrete_Dataset|Concrete Dataset]] to [[#Dataset|Dataset]]</div>
 
 
* <div id="CustomizedBy">'''CustomizedBy''': [[#Service|Service]] to [[#Configuration|Configuration]]</div>
 
 
* <div id="Demand">'''Demand''': [[#Abstract_Service| Abstract Service]] to [[#Software|Software]]</div>
 
 
* <div id="DependOn">'''DependOn''': [[#Software|Software]] to [[#Software|Software]]</div>
 
** <div id="PluginOf">'''PluginOf''': [[#Plugin|Plugin]] to [[#Software|Software]]</div>
 
 
* <div id="Discover">'''Discover''': [[#E-Service|E-Service]] to [[#E-Service|E-Service]]</div>
 
 
* <div id="Host">'''Host''': [[#Hosting Node|Hosting Node]] to [[#E-Service|E-Service]]</div>
 
 
* <div id="Manage">'''Manage''': [[#Service|Service]] to [[#Dataset|Dataset]]</div>
 
 
* <div id="ManagedBy">'''ManagedBy''': [[#Hosting_Node|Hosting Node]] to [[#Site|Site]]</div>
 
 
* <div id="PoweredBy">'''PoweredBy''': [[#Hosting Node|Hosting Node]] to [[#Software|Software]]</div>
 
 
* <div id="Require">'''Require''': [[#Software|Software]] to [[#Service|Service]]</div>
 
 
* <div id="Run">'''Run''': [[#E-Service|E-Service]] to [[#Software|Software]]</div>
 
 
* <div id="Use">'''Use''': [[#E-Service|E-Service]] to [[#E-Service|E-Service]]</div>
 
 
=== ConsistOf ===
 
 
The following relations (extending the '''ConsistOf''') have been identified and defined:
 
 
* <div id="Identify">'''Identify''': [[#Resource_Profile|Resource]] to [[#Facets|Facet]]</div>
 
* <div id="CoverageRelation">'''CoverageRelation''': [[#Resource_Profile|Resource]] to [[#Coverage_Facet|Coverage]]</div>
 
** <div id="Temporal">'''Temporal''': [[#Resource_Profile|Resource]] to [[#Coverage_Facet|Coverage]]</div>
 
** <div id="Spatial">'''Spatial''': [[#Resource_Profile|Resource]] to [[#Coverage_Facet|Coverage]]</div>
 
* <div id="MemoryRelation">'''MemoryRelation''': [[#Resource_Profile|Resource]] to [[#Memory_Facet|Memory]]</div>
 
** <div id="Persistent">'''Persistent''': [[#Resource_Profile|Resource]] to [[#Memory_Facet|Memory]]</div>
 
** <div id="Volatile">'''Volatile''': [[#Resource_Profile|Resource]] to [[#Memory_Facet|Memory]]</div>
 
* <div id="ContactRelation">'''ContactRelation''': [[#Resource_Profile|Resource]] to [[#Contact_Facet|Contact]]</div>
 
** <div id="Manager">'''Manager''': [[#Resource_Profile|Resource]] to [[#Contact_Facet|Contact]]</div>
 
** <div id="Manager">'''Maintainer''': [[#Resource_Profile|Resource]] to [[#Contact_Facet|Contact]]</div>
 
** <div id="Curator">'''Curator''': [[#Resource_Profile|Resource]] to [[#Contact_Facet|Contact]]</div>
 
** <div id="Owner">'''Owner''': [[#Resource_Profile|Resource]] to [[#Contact_Facet|Contact]]</div>
 
** <div id="Creator">'''Creator''': [[#Resource_Profile|Resource]] to [[#Contact_Facet|Contact]]</div>
 
** <div id="Contributor">'''Contributor''': [[#Resource_Profile|Resource]] to [[#Contact_Facet|Contact]]</div>
 
** <div id="Developer">'''Developer''': [[#Resource_Profile|Resource]] to [[#Contact_Facet|Contact]]</div>
 
 
== Resources ==
 
 
Every Resource has:
 
* An [[#Header|Header]]
 
* One or More relation with [[#Facets|Facets]]
 
* Zero or More relation with other [[#Resources|Resources]]
 
 
A class can be identified as <code>Abstract</code>. This means that cannot be instantiated. Use specialization instead.
 
It is not required that an Abstract class establish an [[#Identify|Identify]] relation with a [[#Facets|Facet]].
 
 
=== Resource ===
 
 
{| class="wikitable"
 
{| class="wikitable"
|+ <code>Abstract</code> Resource Profile
+
|+ <code>Abstract</code> Resource '''<code>extends</code>''' [[#Entity|Entity]]
 
|-
 
|-
| colspan=5 | This entity is conceived to describe every "main thing" to be registered and discovered by the Information System.  
+
| colspan=5 | '''Scope:''' This entity is conceived to describe every "main thing" to be registered and discovered by the Information System.  
 
|-
 
|-
 
! Source
 
! Source
Line 748: Line 358:
 
! colspan=5 | Facets
 
! colspan=5 | Facets
 
|-
 
|-
| [[#Resource | Resource]]
+
| [[#Resource|Resource]]
| [[#Identify|Identify]]
+
| [[#ConsistsOf|ConsistsOf]]
 
| align=center | 1..n
 
| align=center | 1..n
| [[#Facets|Facet]]
+
| [[#Facet|Facet]]
| Any Resource has at least one Facet which in some way allow to identify the Resource per se.
+
| Any Resource consists of one or more Facets that describes the different aspects of the resource.
 
|-
 
|-
| [[#Resource | Resource]]
+
! colspan=5 | Relations
| [[#ConsistOf|ConsistOf]]
+
| align=center | 0..n
+
| [[#Facets|Facet]]
+
| Any Resource consist of zero or more Facets which describes the different aspects of the facet.
+
 
|-
 
|-
! colspan=5 | Resources
+
| [[#Resource|Resource]]
|-
+
| [[#isRelatedTo|isRelatedTo]]  
| [[#Resource | Resource]]
+
| align=center | 0..n  
| [[#RelatedTo | RelatedTo]]
+
| [[#Resource|Resource]]
| align=center | 0..n
+
| [[#Resource | Resource]]
+
 
| Any Resource can be related to any other resource.
 
| Any Resource can be related to any other resource.
 
|}
 
|}
  
The following Resources have been identified:
+
The Java Interface declaration for such a type is available at:  
  
* [[#Actor|Actor]]
+
https://code-repo.d4science.org/gCubeSystem/information-system-model/src/branch/master/src/main/java/org/gcube/informationsystem/model/reference/entities/Resource.java
* [[#Configuration|Configuration]]
+
* [[#Dataset|Dataset]]
+
** [[#Concrete_Dataset|Concrete Dataset]]
+
* [[#Service|Service]]
+
** [[#Abstract_Service|Abstract Service]]
+
** [[#E-Service|E-Service]]
+
** [[#Hosting_Node|Hosting Node]]
+
* [[#Software|Software]]
+
  
==== Actor ====
+
==== Facet ====
  
{| class="wikitable"
+
Early ideas and thinking on facets were documented at [[Resource_Model_(2nd_generation)#Facets | 2nd Generation Resource Model: Facets]]
|+ Actor Profile
+
 
 +
Facets are collections of attributes conceived to capture a certain feature/aspect of the [[#Resource | Resource]] they are associated with.
 +
Every facet can define zero or more [[#Property|properties]]. Besides the per-facet envisaged properties, clients can add new ones.
 +
 
 +
{|class="wikitable"
 +
|+ <code>Abstract</code> Facet '''<code>extends</code>''' [[#Entity|Entity]]
 
|-
 
|-
! Source
+
| colspan=5 | '''Goal:''' This is the base type for any Facet.
! Relation
+
! Multiplicity
+
! Target
+
! Description
+
 
|-
 
|-
! colspan=5 | Facets
+
! colspan=5 | Known Usage
|-
+
| [[#Actor|Actor]]
+
| [[#Identify|Identify]]
+
| align=center | 1..n
+
| [[#Contact_Facet|Contact]]
+
| An Actor has at least a Contact Facet which permit to identify the Actor per se.
+
|-
+
| [[#Actor|Actor]]
+
| [[#ConsistOf|ConsistOf]]
+
| align=center | 0..n
+
| [[#Contact_Facet|Contact]]
+
| An Actor can have other Contact Facets which provide secondary contact information.
+
|-
+
! colspan=5 | Resources
+
|-
+
| [[#Actor|Actor]]
+
| [[#RelatedTo|RelatedTo]]
+
| align=center | 0..n
+
| '''TBD'''
+
| '''TBD'''
+
|}
+
 
+
==== Configuration ====
+
 
+
{| class="wikitable"
+
|+ Configuration Profile
+
 
|-
 
|-
 
! Source
 
! Source
 
! Relation
 
! Relation
! Multiplicity  
+
! Multiplicity
 
! Target
 
! Target
 
! Description
 
! Description
 
|-
 
|-
! colspan=5 | Facets
+
| [[#Resource|Resource]]
|-
+
| [[#ConsistsOf|ConsistsOf]]
| [[#Configuration|Configuration]]
+
| [[#Identify|Identify]]
+
 
| align=center | 1..n
 
| align=center | 1..n
| [[#Simple_Property_Facet|Simple Property]]
+
| [[#Facet|Facet]]
| '''TBD'''
+
| Any Resource consist of one or more Facets which describes the different aspects of the resource.
|-
+
| [[#Configuration|Configuration]]
+
| [[#ConsistOf|ConsistOf]]
+
| align=center | 0..n
+
| [[#Facets|Facet]]
+
| '''TBD'''
+
|-
+
! colspan=5 | Resources
+
|-
+
| [[#Software|Software]]
+
| [[#ConfiguredBy|ConfiguredBy]]
+
| align=center | 0..n
+
| [[#Configuration|Configuration]]
+
| '''TBD'''
+
|-
+
| [[#Service|Service]]
+
| [[#CustomizedBy|CustomizedBy]]
+
| align=center | 0..n
+
| [[#Configuration|Configuration]]
+
| '''TBD'''
+
 
|}
 
|}
  
==== Dataset ====
 
  
{| class="wikitable"
+
The Java Interface declaration for such a type is available at:
|+ Dataset Profile
+
|-
+
! Source
+
! Relation
+
! Multiplicity
+
! Target
+
! Description
+
|-
+
! colspan=5 | Facets
+
|-
+
| [[#Dataset|Dataset]]
+
| [[#Identify|Identify]]
+
| align=center | 1..n
+
| [[#Identifier_Facet|Identifier]]
+
| '''TBD'''
+
|-
+
| [[#Dataset|Dataset]]
+
| [[#Curator|Curator]]
+
| align=center|0..n
+
| [[#Contact_Facet|Contact Facet]]
+
| Is he the curator
+
|-
+
| [[#Dataset|Dataset]]
+
| [[#Owner|Owner]]
+
| align=center|0..n
+
| [[#Contact_Facet|Contact Facet]]
+
| Is he the owner
+
|-
+
| [[#Dataset|Dataset]]
+
| [[#Creator|Creator]]
+
| align=center|0..n
+
| [[#Contact_Facet|Contact Facet]]
+
| Is he the creator
+
|-
+
| [[#Dataset|Dataset]]
+
| [[#Contributor|Contributor]]
+
| align=center|0..n
+
| [[#Contact_Facet|Contact Facet]]
+
| Is he the contributor
+
|-
+
| [[#Dataset|Dataset]]
+
| [[#Maintainer|Maintainer]]
+
| align=center|0..n
+
| [[#Contact_Facet|Contact Facet]]
+
| Is he the maintainer
+
|-
+
| [[#Dataset|Dataset]]
+
| [[#ConsistOf|ConsistOf]]
+
| align=center | 0..n
+
| [[#Access_Point_Facet|Access Point Facet]]
+
| The embargoState can be modeled through the access policy defined in the ConsistOf relation
+
|-
+
| [[#Dataset|Dataset]]
+
| [[#ConsistOf|ConsistOf]]
+
| align=center | 0..n
+
| [[#License_Facet|License Facet]]
+
| The duration of license if any can can be modeled through the expiry date defined in the ConsistOf relation
+
|-
+
| [[#Dataset|Dataset]]
+
| [[#ConsistOf|ConsistOf]]
+
| align=center | 0..n
+
| [[#Event_Facet|Event Facet]]
+
| '''TBD'''
+
|-
+
| [[#Dataset|Dataset]]
+
| [[#ConsistOf|ConsistOf]]
+
| align=center | 0..n
+
| [[#Provenance_Facet|Provenance Facet]]
+
| '''TBD'''
+
|-
+
| [[#Dataset|Dataset]]
+
| [[#Temporal|Temporal]]
+
| align=center | 0..n
+
| [[#Coverage_Facet|Coverage]]
+
| '''TBD'''
+
|-
+
| [[#Dataset|Dataset]]
+
| [[#Spatial|Spatial]]
+
| align=center | 0..n
+
| [[#Coverage_Facet|Coverage]]
+
| '''TBD'''
+
|-
+
| [[#Dataset|Dataset]]
+
| [[#ConsistOf|ConsistOf]]
+
| align=center | 0..n
+
| [[#Descriptive_Metadata_Facet|Descriptive Metadata]]
+
| '''TBD'''
+
|-
+
| [[#Dataset|Dataset]]
+
| [[#ConsistOf|ConsistOf]]
+
| align=center | 0..n
+
| [[#Subject_Facet|Subject]]
+
| '''TBD'''
+
|-
+
! colspan=5 | Resources
+
|-
+
| [[#Service|Service]]
+
| [[#Manage|Manage]]
+
| align=center | 0..n
+
| [[#Dataset|Dataset]]
+
| '''TBD'''
+
|-
+
| [[#Dataset|Dataset]]
+
| [[#CorrelatedTo|CorrelatedTo]]
+
| align=center | 0..n
+
| [[#Dataset|Dataset]]
+
| '''TBD'''
+
|-
+
| [[#Concrete_Dataset|Concrete Dataset]]
+
| [[#PartOf|PartOf]]
+
| align=center | 0..n
+
| [[#Dataset|Dataset]]
+
| '''TBD'''
+
  
|}
+
https://code-repo.d4science.org/gCubeSystem/information-system-model/src/branch/master/src/main/java/org/gcube/informationsystem/model/reference/entities/Facet.java
  
===== Concrete Dataset =====
+
=== Relation ===
  
{| class="wikitable"
+
Every relation has:
|+ Concrete Dataset Profile <code>''extends''</code> [[#Dataset | Dataset]] Profile
+
* An [[#Header | Header]]
 +
* A [[#PropagationConstraint|PropagationConstraint]]
 +
* Zero or More [[#Property|properties]] (not necessarily predefined, similarly to [[#Facets|Facets]]).
 +
 
 +
The Java Interface declaration for such a type is available at:
 +
 
 +
https://code-repo.d4science.org/gCubeSystem/information-system-model/src/branch/master/src/main/java/org/gcube/informationsystem/model/reference/relations/Relation.java
 +
 
 +
==== IsRelatedTo ====
 +
 
 +
{|class="wikitable"
 +
|+ IsRelatedTo <code>''extends''</code> Relation
 
|-
 
|-
 
! Source
 
! Source
 
! Relation
 
! Relation
! Multiplicity  
+
! Multiplicity
 
! Target
 
! Target
 
! Description
 
! Description
 
|-
 
|-
! colspan=5 | Facets
+
| [[#Resources|Resource]]
|-
+
| [[#IsRelatedTo|IsRelatedTo]]
| [[#Concrete_Dataset|Concrete Dataset]]
+
| [[#Maintainer|Maintainer]]
+
| align=center|1..n
+
| [[#Contact_Facet|Contact Facet]]
+
| Is he the maintainer
+
|-
+
| [[#Concrete_Dataset|Concrete Dataset]]
+
| [[#ConsistOf|ConsistOf]]
+
| align=center | 1..n
+
| [[#Access_Point_Facet|Access Point Facet]]
+
| The embargoState can be modeled through the access policy defined in the ConsistOf relation
+
|-
+
! colspan=5 | Resources
+
|-
+
| [[#Concrete_Dataset|Concrete Dataset]]
+
| [[#PartOf|PartOf]]
+
 
| align=center | 0..n
 
| align=center | 0..n
| [[#Dataset|Dataset]]
+
| [[#Resources|Resource]]
| '''TBD'''
+
| A relation linking any two [[#Resources|Resources]].
|-
+
 
|}
 
|}
  
==== Service ====
+
The Java Interface declaration for such a type is available at:
  
{| class="wikitable"
+
https://code-repo.d4science.org/gCubeSystem/information-system-model/src/branch/master/src/main/java/org/gcube/informationsystem/model/reference/relations/IsRelatedTo.java
|+ <code>Abstract</code> Service Profile
+
|-
+
! Source
+
! Relation
+
! Multiplicity
+
! Target
+
! Description
+
|-
+
! colspan=5 | Facets
+
|-
+
| [[#Service|Service]]
+
| [[#ConsistOf|ConsistOf]]
+
| align=center | 0..n
+
| [[#Contact_Facet|Contact Facet]]
+
| '''TBD'''
+
|-
+
! colspan=5 | Resources
+
|-
+
| [[#Software|Software]]
+
| [[#Require|Require]]
+
| align=center | 0..n
+
| [[#Service|Service]]
+
| '''TBD'''
+
|-
+
| [[#Service|Service]]
+
| [[#CallFor|CallFor]]
+
| align=center | 0..n
+
| [[#Service|Service]]
+
| '''TBD'''
+
|-
+
| [[#Service|Service]]
+
| [[#CustomizedBy|CustomizedBy]]
+
| align=center | 0..n
+
| [[#Configuration|Configuration]]
+
| '''TBD'''
+
  
|-
+
==== ConsistsOf ====
| [[#Service|Service]]
+
| [[#Manage|Manage]]
+
| align=center | 0..n
+
| [[#Dataset|Dataset]]
+
| '''TBD'''
+
|}
+
  
===== Abstract Service =====
+
{|class="wikitable"
 
+
|+ ConsistsOf  <code>''extends''</code> Relation
{| class="wikitable"
+
|+ Abstract Service Profile <code>''extends''</code> [[#Service | Service]] Profile
+
 
|-
 
|-
 
! Source
 
! Source
 
! Relation
 
! Relation
! Multiplicity  
+
! Multiplicity
 
! Target
 
! Target
 
! Description
 
! Description
 
|-
 
|-
! colspan=5 | Facets
+
| [[#Resources|Resource]]
|-
+
| [[#ConsistsOf|ConsistsOf]]
| [[#Abstract_Service|Abstract Service]]
+
| [[#Identify|Identify]]
+
 
| align=center | 1..n
 
| align=center | 1..n
| '''TBD'''
+
| [[#Facet|Facet]]
| '''TBD'''
+
| A relation connecting each [[#Resource|Resource]] with one of the [[#Facet|Facet]] characterizing it.
|-
+
| [[#Abstract_Service|Abstract Service]]
+
| [[#ConsistOf|ConsistOf]]
+
| align=center | 0..n
+
| '''TBD'''
+
| '''TBD'''
+
|-
+
! colspan=5 | Resources
+
|-
+
| [[#Abstract_Service|Abstract Service]]
+
| [[#Demand|Demand]]
+
| align=center | 0..n
+
| [[#Software|Software]]
+
| '''TBD'''
+
 
|}
 
|}
  
===== E-Service =====
 
  
{| class="wikitable"
+
The Java Interface declaration for such a type is available at:
|+ E-Service Profile <code>''extends''</code> [[#Service|Service]] Profile
+
|-
+
! Source
+
! Relation
+
! Multiplicity
+
! Target
+
! Description
+
|-
+
! colspan=5 | Facets
+
|-
+
| [[#E-Service|E-Service]]
+
| [[#Identify|Identify]]
+
| align=center|1..1
+
| [[#Software_Facet|Software]]
+
| '''TBD'''
+
|-
+
| [[#E-Service|E-Service]]
+
| [[#ConsistOf|ConsistOf]]
+
| align=center|1..n
+
| [[#Access_Point_Facet|Access Point]]
+
| Identify the endpoints of the E-Service
+
|-
+
| [[#E-Service|E-Service]]
+
| [[#ConsistOf|ConsistOf]]
+
| align=center|1..n
+
| [[#Event_Facet|Event]]
+
| E.g. ActivationTime,DeploymenTime)
+
|-
+
| [[#E-Service|E-Service]]
+
| [[#ConsistOf|ConsistOf]]
+
| align=center|1..1
+
| [[#Service_State_Facet|Service State]]
+
| I.e. STARTED, ready, down, failed
+
|-
+
! colspan=5 | Resources
+
|-
+
| [[#E-Service|E-Service]]
+
| [[#Run|Run]]
+
| align=center | 0..n
+
| [[#Software|Software]]
+
| '''TBD'''
+
|-
+
| [[#E-Service|E-Service]]
+
| [[#Use|Use]]
+
| align=center | 0..n
+
| [[#E-Service|E-Service]]
+
| A reference to any other E-Service, the E-Service instance is invoking.
+
|-
+
| [[#E-Service|E-Service]]
+
| [[#Discover|Discover]]
+
| align=center | 0..n
+
| [[#E-Service|E-Service]]
+
| A reference to any other E-Service, the E-Service instance is discovering through query on IS.
+
|-
+
| [[#Hosting_Node|Hosting Node]]
+
| [[#Host|Host]]
+
| align=center | 0..n
+
| [[#E-Service|E-Service]]
+
| '''TBD'''
+
|}
+
  
===== Hosting Node =====
+
https://code-repo.d4science.org/gCubeSystem/information-system-model/src/branch/master/src/main/java/org/gcube/informationsystem/model/reference/relations/ConsistsOf.java
  
{| class="wikitable"
+
=== Internal Entity and Relation ===
|+ Hosting Node Profile <code>''extends''</code> [[#Service | Service]] Profile
+
|-
+
! Source
+
! Relation
+
! Multiplicity
+
! Target
+
! Description
+
|-
+
! colspan=5 | Facets
+
|-
+
| [[#Hosting_Node|Hosting Node]]
+
| [[#ConsistOf|ConsistOf]]
+
| align=center|1..n
+
| [[#CPU_Facet|CPU Facet]]
+
| CPU Information
+
|-
+
| [[#Hosting_Node|Hosting Node]]
+
| [[#ConsistOf|ConsistOf]]
+
| align=center|1..n
+
| [[#Persistent_Memory_Facet|Persistent Memory Facet]]
+
| Disk Space '''TBD Specialize ConsistOf'''
+
|-
+
| [[#Hosting_Node|Hosting Node]]
+
| [[#ConsistOf|ConsistOf]]
+
| align=center|1..n
+
| [[#Volatile_Memory_Facet|Volatile Memory Facet]]
+
| RAM '''TBD Specialize ConsistOf'''
+
|-
+
| [[#Hosting_Node|Hosting Node]]
+
| [[#ConsistOf|ConsistOf]]
+
| align=center|1..n
+
| [[#Network_Address_Facet|Network Address]]
+
| Network address
+
|-
+
| [[#Hosting_Node|Hosting Node]]
+
| [[#ConsistOf|ConsistOf]]
+
| align=center|1..n
+
| [[#Event_Facet|Event]]
+
| '''TBD'''
+
|-
+
| [[#Hosting_Node|Hosting Node]]
+
| [[#ConsistOf|ConsistOf]]
+
| align=center|1..n
+
| [[#Container_State_Facet|Container State]]
+
| I.e. started, ready, certified, down, failed
+
|-
+
| [[#Hosting_Node|Hosting Node]]
+
| [[#ConsistOf|ConsistOf]]
+
| align=center|1..n
+
| [[#Simple_Property_Facet|Simple Property]]
+
| E.g. Environment Variables
+
|-
+
! colspan=5 | Resources
+
|-
+
| [[#Hosting_Node|Hosting Node]]
+
| [[#Host|Host]]
+
| align=center | 0..n
+
| [[#E-Service|E-Service]]
+
| A reference to any E-Service instance, the Hosting Node instance is hosting.
+
|-
+
| [[#Hosting_Node|Hosting Node]]
+
| [[#ManagedBy|ManagedBy]]
+
| align=center | 0..n
+
| [[#Site|Site]]
+
| '''TBD'''
+
|-
+
| [[#Hosting_Node|Hosting Node]]
+
| [[#PoweredBy|PoweredBy]]
+
| align=center | 0..n
+
| [[#Software|Software]]
+
| '''TBD'''
+
|}
+
  
==== Schema ====
+
For internal use only are defined the following entity and relation:
  
'''TBD'''
+
* [[#Context|Context]]
 +
* [[#IsParentOf|IsParentOf]]
  
{| class="wikitable"
+
==== Context ====
|+ Schema Profile
+
 
 +
Model a Context (aka scope) in the same Application Domain.
 +
 
 +
{|class="wikitable"
 +
|+ Context
 
|-
 
|-
! Source
+
| colspan=5 | '''Goal:''' Models a Context (aka scope).
! Relation
+
! Multiplicity
+
! Target
+
! Description
+
 
|-
 
|-
! colspan=5 | Facets
+
! colspan=5 | Properties
 
|-
 
|-
| [[#Schema|Schema]]
+
! Name
| [[#Identify|Identify]]
+
! Type
| align=center | 1..n
+
! Attributes
| [[#Identification_Facet|Identification]]
+
! colspan=2 | Description
| '''TBD'''
+
 
|-
 
|-
| [[#Schema|Schema]]
+
| name
| [[#ConsistOf|ConsistOf]]
+
| String
| align=center | 1..n
+
| <code>Mandatory=true</code> <br/> <code>NotNull=true</code>
| '''TBD'''
+
| colspan=2 | The name of the context. Two [[#Context|Context]] with the same name can exist but they cannot have the same parent. In other words, a [[#Context|Context]] cannot have two children with the same name.
| '''TBD'''
+
 
|-
 
|-
! colspan=5 | Resources
+
! colspan=5 | Known Usage
|-
+
| [[#Schema|Schema]]
+
| '''TBD'''
+
| align=center | 0..n
+
| '''TBD'''
+
| '''TBD'''
+
|}
+
 
+
==== Site ====
+
 
+
{| class="wikitable"
+
|+ Site Profile
+
 
|-
 
|-
 
! Source
 
! Source
 
! Relation
 
! Relation
! Multiplicity  
+
! Multiplicity
 
! Target
 
! Target
 
! Description
 
! Description
 
|-
 
|-
! colspan=5 | Facets
+
| [[#Context|Context]]
|-
+
| [[#IsParentOf|IsParentOf]]
| [[#Site|Site]]
+
| [[#Identify|Identify]]
+
| align=center | 1..n
+
| [[#Identification_Facet|Identification]]
+
| '''TBD'''
+
|-
+
| [[#Site|Site]]
+
| [[#ConsistOf|ConsistOf]]
+
| align=center | 1..n
+
| [[#Contact_Facet|Contact Facet]]
+
| '''TBD'''
+
|-
+
| [[#Site|Site]]
+
| [[#ConsistOf|ConsistOf]]
+
| align=center | 1..n
+
| [[#Location_Facet|Location Facet]]
+
| '''TBD'''
+
|-
+
| [[#Hosting_Node|Hosting Node]]
+
| [[#ConsistOf|ConsistOf]]
+
| align=center|1..n
+
| [[#Network_Address_Facet|Network Address]]
+
| Network address '''TBD'''
+
|-
+
! colspan=5 | Resources
+
|-
+
| [[#Hosting_Node|Hosting Node]]
+
| [[#ManagedBy|ManagedBy]]
+
 
| align=center | 0..n
 
| align=center | 0..n
| [[#Site|Site]]
+
| [[#Context|Context]]
| '''TBD'''
+
| ...
 
|}
 
|}
  
==== Software ====
+
==== IsParentOf ====
  
{| class="wikitable"
+
This relation has no propagation constraint.
|+ Software Profile
+
|-
+
! Source
+
! Relation
+
! Multiplicity
+
! Target
+
! Description
+
|-
+
! colspan=5 | Facets
+
|-
+
| [[#Software|Software]]
+
| [[#Identify|Identify]]
+
| align=center|1..n
+
| [[#Software_Facet|Software]]
+
| Software coordinates which identify the Software per se.
+
|-
+
| [[#Software|Software]]
+
| [[#ConsistOf|ConsistOf]]
+
| align=center|1..n
+
| [[#Software_Facet|Software]]
+
| Apart the one connected with [[#Identify|Identify]] relation (gCube coordinates) the others identify the sw in other way e.g. (Maven coordinates)
+
|-
+
| [[#Software|Software]]
+
| [[#ConsistOf|ConsistOf]]
+
| align=center|0..n '''TBD'''
+
| [[#Access_Point_Facet|Access Point]]
+
| Links to maven artifact on nexus, javadoc, wiki, svn ...
+
|-
+
| [[#Software|Software]]
+
| [[#ConsistOf|ConsistOf]]
+
| align=center|0..n '''TBD'''
+
| [[#License_Facet|License]]
+
| '''TBD'''
+
|-
+
| [[#Software|Software]]
+
| [[#ConsistOf|ConsistOf]]
+
| align=center|1..n
+
| [[#State_Facet|State]]
+
| '''TBD'''
+
|-
+
! colspan=5 | Resources
+
|-
+
| [[#Software|Software]]
+
| [[#ConfiguredBy|ConfiguredBy]]
+
| align=center|0..n
+
| [[#Configuration|Configuration]]
+
| '''TBD'''
+
|-
+
| [[#Software|Software]]
+
| [[#DependOn|DependOn]]
+
| align=center|0..n
+
| [[#Software|Software]]
+
| '''TBD'''
+
|-
+
| [[#Software|Software]]
+
| [[#Require|Require]]
+
| align=center|0..n
+
| [[#Service|Service]]
+
| '''TBD'''
+
|-
+
| [[#Plugin|Plugin]]
+
| [[#PluginOf|PluginOf]]
+
| align=center|0..n
+
| [[#Software|Software]]
+
| '''TBD'''
+
|-
+
| [[#Abstract_Service|Abstract Service]]
+
| [[#Demand|Demand]]
+
| align=center|0..n
+
| [[#Software|Software]]
+
| An inverse reference stemming from the [[#Abstract_Service | Abstract Service]] that is ...
+
|-
+
| [[#E-Service|E-Service]]
+
| [[#Run|Run]]
+
| align=center|0..n
+
| [[#Software|Software]]
+
| An inverse reference stemming from the [[#E-Service | E-Service]] that is running this Software
+
|-
+
| [[#Hosting_Node|Hosting Node]]
+
| [[#PoweredBy|PoweredBy]]
+
| align=center|0..n
+
| [[#Software|Software]]
+
| An inverse reference stemming from the [[#Hosting Node|Hosting Node]] that is ...
+
|}
+
  
==== Plugin ====
+
{|class="wikitable"
 
+
{| class="wikitable"
+
|+ Plugin Profile <code>''extends''</code> [[#Software|Software]] Profile
+
 
|-
 
|-
 
! Source
 
! Source
 
! Relation
 
! Relation
! Multiplicity  
+
! Multiplicity
 
! Target
 
! Target
 
! Description
 
! Description
 
|-
 
|-
! colspan=5 | Facets
+
| [[#Context|Context]]
|-
+
| [[#IsParentOf|IsParentOf]]
| [[#Plugin|Plugin]]
+
| align=center | 0..n
| '''TBD'''
+
| [[#Context|Context]]
| '''TBD'''
+
| ...
| '''TBD'''
+
| '''TBD'''
+
|-
+
! colspan=5 | Resources
+
|-
+
| [[#Plugin|Plugin]]
+
| [[#PluginOf|PluginOf]]
+
| align=center|1..n  
+
| [[#Software|Software]]
+
| A reference to the [[#Software|Software]] this [[#Plugin|Plugin]] extends capabilities.
+
 
|}
 
|}
  
== Best practices and guidelines ==
+
=== Best practices and guidelines ===
  
 
* On Facet instances "reuse" across Resource Profiles:
 
* On Facet instances "reuse" across Resource Profiles:
** This can be guaranteed automatically by the system, if and just in the case the system want to avoid duplication of information. It is based on a configuration policy;  
+
** This can be guaranteed automatically by the system, if and just in the case the system wants to avoid duplication of information. It is based on a configuration policy;  
 
** This MUST be done only when a change in a facet instance MUST affect a change in all Resources connected to such a Facet.
 
** This MUST be done only when a change in a facet instance MUST affect a change in all Resources connected to such a Facet.
  
== Internal Entity and Relation ==
 
  
For internal use only are defined the following entity and relation:
+
=== Maven coordinates ===
 
+
* [[#Context|Context]]
+
* [[#ParentOf|ParentOf]]
+
  
=== Context ===
+
To use the Java library containing the classes modelling the IS Model you can declare the following dependency:
  
Model a Context (aka scope)
+
<source lang="xml">
 +
<dependency>
 +
<groupId>org.gcube.information-system</groupId>
 +
<artifactId>information-system-model</artifactId>
 +
<version>[5.0.0,6.0.0-SNAPSHOT)</version>
 +
<dependency>
 +
</source>
  
=== ParentOf ===
+
== gCube Model ==
  
A relation beetween two [[#Context|Context]]
+
An example of instantiation of the IS model is the [[gCube Model]].

Latest revision as of 18:15, 26 January 2023

The Information System Model (henceforth IS Model) is used by Information System Resource Registry

Disclaimer

This Model is part of research conducted in the context of a PhD. This wiki page represents just a partial view of the full rationale of the research. To have a complete overview of the rationale of the model, please refer to the PhD thesis which is publicly available at:

https://etd.adm.unipi.it/t/etd-05102019-114151/

https://openportal.isti.cnr.it/doc?id=people______::470484e51fcb9e307a418c800efc44c8


If you need to refer to such work you can cite the PhD Thesis.

BibText:

@phdthesis{frosini2019transactional,
  title={Transactional REST Information System for Federated Research Infrastructures enabling Virtual Research Environments},
  author={Frosini, Luca},
  year={2019},
  school={UNIVERSIT{\`A} DI PISA}
}

An previous paper about this work is:

BibText:

@article{frosini2018facet,
  title={A Facet-based Open and Extensible Resource Model for Research Data Infrastructures.},
  author={Frosini, Luca and Pagano, Pasquale},
  journal={Grey Journal (TGJ)},
  volume={14},
  number={2},
  year={2018}
}

IS Model

The Information System Model (henceforth IS Model) is a graph model with Entities as nodes and Relations as edges.

Is-model.png

Is-model-er.png

  • Two typologies of entities are envisaged:
    • Resources, i.e. entities representing a description of "thing" to be managed;
      • Every Resource is described by a number of Facets.
    • Facets, i.e. entities contributing to "build" a description of a Resource. Every facet, once attached to a Resource profile captures a certain aspect / characterization of the resource;
      • Every facet is characterised by a number of properties;
  • Each entity and relation
    • has an header automatically generated for the sake of identification and provenance of the specific information;
    • can be specialized
      • A number of specializations are identified below. Such specializations are managed by the gCube Core services, i.e. Core services builds upon these specializations to realize its management tasks;
      • Other specializations can be defined by clients, the system make it possible to store these additional typologies of relations and facets and to discover them.
  • Facet and Relation instances can have additional properties which are not defined in the schema (henceforth schema-mixed mode).
  • On relations:
    • Any relation has a direction, i.e. a "source" (out bound of the relation) and a "target" (in bound of the relation). Anyway, the relation can be also navigated in the opposite direction;
    • It is not permitted to define a Relation having a Facet as "source". In other words:
      • It is not permitted to define a Relation connecting a Facet with another one;
      • It is not permitted to define a Relation connecting a Facet with a Resource (as target);
    • A Facet instance can be linked (by ConsistsOf or any specialization of it) from different Resources.

We derived the term Facet directly from the dictionary definition. Merriam Webster Dictionary defines facet as “any of the definable aspects that make up a subject (as of contemplation) or an object (as of consideration)”[1]. The Free Dictionary defines a facet as “One of numerous aspects, as of a subject” [2].


Type Attributes

Any attribute defined in the type schema is characterised by:

  • Name : Property Name
  • Type : The Type of the Property (e.g. String, Integer, ...). It can be a Basic Type or a Derived Type or a Complex Type
  • Description : The description of the Property. default=null.
  • Mandatory (M): Indicate if the Property is mandatory. default=false.
  • ReadOnly (RO): The Property cannot change its value. default=false.
  • NotNull (NN): Whether the property must assume a value diverse from 'null' or not. default=false
  • Max (Max): default=null
  • Min (Min): default=null
  • Regex (Reg)): A Regular Expression to validate the property value, default=null. A good online tool for regex is avalable at https://regex101.com/

Basic Types

Type Java type Description
Boolean java.lang.Boolean or boolean Handles only the values True or False.
Integer java.lang.Integer or int or java.math.BigInteger 32-bit signed Integers.
Short java.lang.Short or short Small 16-bit signed integers.
Long java.lang.Long or long Big 64-bit signed integers.
Float java.lang.Float or float Decimal numbers.
Double java.lang.Double or double Decimal numbers with high precision.
Date java.util.Date Any date with the precision up to milliseconds.
String java.lang.String Any string as alphanumeric sequence of chars.
Byte java.lang.Byte or byte Single byte. useful to store small 8-bit signed integers.
Binary java.lang.Byte[] or byte[] Can contain any value as byte array.

Derived Types

The following are obtained using a String as real type and adding a validation regex.

Type Java type Description
Enum java.lang.Enum or enum by default it is represented using the String representation of the Enum. So that the primitive type used will be String. The enumeration is checked by setting Regexpr property. The Regular Expression is auto-generated and it will be something like ^(FIRST-ENUM-STRING_REPRESENTATION|SECOND-ENUM-STRING_REPRESENTATION|...|LAST_ENUM_STRING_REPRESENTATION)$.

Otherwise (if indicated using an annotation), it can be represented using the Integer value of the Enum. So that the primitive type used will be Integer. The enumeration is checked using Max and Min properties.

UUID java.util.UUID String representation of the UUID. The check is obtained using the regular expression ^([a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}){1}$
URL java.net.URL String representation of the URL. No check actually.
URI java.net.URI String representation of the URI. No check actually.
TypeVersion org.gcube.informationsystem.utils.TypeVersion A type representing and validating a version in the following format X.X.X Major(Integer).Minor(Integer).Revision(Integer) (e.g 1.0.0, 2.3.0, 2.0.1). The check is obtained using the regular expression ^[1-9][0-9]{0,}\.(0|([1-9][0-9]{0,}))\.(0|([1-9][0-9]{0,}))$.

Complex Types

Any property defined by composing basic types, complex types and other complex types. Any complex type can be defined by extending Property type.

Type Java type Description
Property ? extends org.gcube.informationsystem.model.reference.properties.Property This is an Object contained inside the owner Entity and has no Header. It is reachable only by navigating the owner Entity/Relation.
Property list List<? extends org.gcube.informationsystem.model.reference.properties.Property> List of Objects contained inside the owner Entity and have no Header. They are reachable only by navigating the owner Entity/Relation.
Property set Set<? org.gcube.informationsystem.model.reference.properties.Property> Set (no duplicates) of Objects contained inside the owner Entity and have no Header. They are reachable only by navigating the owner Entity/Relation.
Property map Map<String, ? extends org.gcube.informationsystem.model.reference.properties.Propertyd> Map of Objects contained inside the owner Entity and have no Header. They are reachable only by navigating the owner Entity/Relation.

Property

It does not define any field. It is just used as a base class.

The Java Interface declaration for such a type is available at:

https://code-repo.d4science.org/gCubeSystem/information-system-model/src/branch/master/src/main/java/org/gcube/informationsystem/model/reference/properties/Property.java

Header

Every Entity and Relation has an Header automatically created/updated by the System.

Header extends Property
Name Type Attributes Description
uuid UUID Mandatory=true
NotNull=true
ReadOnly=true
This UUID is be used to identify the Entity or the Relation univocally.
createdBy String Mandatory=true
NotNull=true
ReadOnly=true
The user that created the Entity or the Relation. It is initialized at creation time.
creationTime Date Mandatory=true
NotNull=true
ReadOnly=true
Creation time.
lastUpdateBy String Mandatory=true
NotNull=true
The user that made the last update to the Entity or the Relation. At creation time, it assumes the same value of creator.
lastUpdateTime Date Mandatory=true
NotNull=true
Last Update time. At creation time it assumes the same value of creationTime.


The Java Interface declaration for such a type is available at:

https://code-repo.d4science.org/gCubeSystem/information-system-model/src/branch/master/src/main/java/org/gcube/informationsystem/model/reference/properties/Header.java

PropagationConstraint

At any time entities and relations can be added or removed to/from a context or deleted. The PropagationConstraint property contained in each relation is a predefined Property type which indicates the behaviour to be held on a target entity when an event related to a context occurs in the source resource or directly to the relation.

PropagationConstraint extends Property
Name Type Attributes Description
remove Enum Regex=(cascadeWhenOrphan|cascade|keep) It indicates the behaviour to implement for the target Entity when a 'remove' action is performed on the source Resource. Remove actions are: (i) the operation of removing an instance from a context; (ii) the operation of deleting an instance (it has an impact on all contexts).
add Enum Regex=(propagate|unpropagate) It indicates the behaviour to implement for the target Entity when an 'add' action is performed on the source Resource. Add action is the operation of adding an instance to a context.


Remove values;

  • cascadeWhenOrphan: When a remove action is performed on the source Entity of the relation, or directly on the relation, then the same remove action apart on the relation is performed to the target entity if it has no other incoming relations.
  • cascade: When a remove action is performed on the source Entity of the relation, or directly on the relation, then the same remove action is performed on the relation and its target entity.
  • keep: When a remove action is performed on the source Entity of the relation, or directly on the relation, then the same remove action is performed on relation but never to the target entity.


Add values;

  • propagate: When an 'add' action is performed on the source Entity of the relation, or directly on the relation, then the same add action is performed on the relation and its target Entity.
  • unpropagate: When an 'add' action is performed on the source Entity of the relation, is performed on source relation only. Trying to perform an 'add' action on the relation has no effects.


Any Relation contains such a property. If the values are not specified at creation time the system initialize it with the following rules:


The Java Interface declaration for such a type is available at:

https://code-repo.d4science.org/gCubeSystem/information-system-model/src/branch/master/src/main/java/org/gcube/informationsystem/model/reference/properties/PropagationConstraint.java

Encrypted
Encrypted extends Property
Name Type Attributes Description
value String The encrypted value. The resource registry store safely the value. When received the value is decrypted using the key of current context and store the value safely. When the value is read, the resource-registry retrieve the value and encrypt it with the key of current context.

The Java Interface declaration for such a type is available at:

https://code-repo.d4science.org/gCubeSystem/information-system-model/src/branch/master/src/main/java/org/gcube/informationsystem/model/reference/properties/Encrypted.java

Entity

Abstract Entity
Goal: This is the base type for any entity.
Properties
Name Type Attributes Description
header Header Mandatory=true
NotNull=true
ReadOnly=true
A distinguishing string to be used by clients to identify the access point of interest.

The Java Interface declaration for such a type is available at:

https://code-repo.d4science.org/gCubeSystem/information-system-model/src/branch/master/src/main/java/org/gcube/informationsystem/model/reference/entities/Entity.java

Resource

Abstract Resource extends Entity
Scope: This entity is conceived to describe every "main thing" to be registered and discovered by the Information System.
Source Relation Multiplicity Target Description
Facets
Resource ConsistsOf 1..n Facet Any Resource consists of one or more Facets that describes the different aspects of the resource.
Relations
Resource isRelatedTo 0..n Resource Any Resource can be related to any other resource.

The Java Interface declaration for such a type is available at:

https://code-repo.d4science.org/gCubeSystem/information-system-model/src/branch/master/src/main/java/org/gcube/informationsystem/model/reference/entities/Resource.java

Facet

Early ideas and thinking on facets were documented at 2nd Generation Resource Model: Facets

Facets are collections of attributes conceived to capture a certain feature/aspect of the Resource they are associated with. Every facet can define zero or more properties. Besides the per-facet envisaged properties, clients can add new ones.

Abstract Facet extends Entity
Goal: This is the base type for any Facet.
Known Usage
Source Relation Multiplicity Target Description
Resource ConsistsOf 1..n Facet Any Resource consist of one or more Facets which describes the different aspects of the resource.


The Java Interface declaration for such a type is available at:

https://code-repo.d4science.org/gCubeSystem/information-system-model/src/branch/master/src/main/java/org/gcube/informationsystem/model/reference/entities/Facet.java

Relation

Every relation has:

The Java Interface declaration for such a type is available at:

https://code-repo.d4science.org/gCubeSystem/information-system-model/src/branch/master/src/main/java/org/gcube/informationsystem/model/reference/relations/Relation.java

IsRelatedTo

IsRelatedTo extends Relation
Source Relation Multiplicity Target Description
Resource IsRelatedTo 0..n Resource A relation linking any two Resources.

The Java Interface declaration for such a type is available at:

https://code-repo.d4science.org/gCubeSystem/information-system-model/src/branch/master/src/main/java/org/gcube/informationsystem/model/reference/relations/IsRelatedTo.java

ConsistsOf

ConsistsOf extends Relation
Source Relation Multiplicity Target Description
Resource ConsistsOf 1..n Facet A relation connecting each Resource with one of the Facet characterizing it.


The Java Interface declaration for such a type is available at:

https://code-repo.d4science.org/gCubeSystem/information-system-model/src/branch/master/src/main/java/org/gcube/informationsystem/model/reference/relations/ConsistsOf.java

Internal Entity and Relation

For internal use only are defined the following entity and relation:

Context

Model a Context (aka scope) in the same Application Domain.

Context
Goal: Models a Context (aka scope).
Properties
Name Type Attributes Description
name String Mandatory=true
NotNull=true
The name of the context. Two Context with the same name can exist but they cannot have the same parent. In other words, a Context cannot have two children with the same name.
Known Usage
Source Relation Multiplicity Target Description
Context IsParentOf 0..n Context ...

IsParentOf

This relation has no propagation constraint.

Source Relation Multiplicity Target Description
Context IsParentOf 0..n Context ...

Best practices and guidelines

  • On Facet instances "reuse" across Resource Profiles:
    • This can be guaranteed automatically by the system, if and just in the case the system wants to avoid duplication of information. It is based on a configuration policy;
    • This MUST be done only when a change in a facet instance MUST affect a change in all Resources connected to such a Facet.


Maven coordinates

To use the Java library containing the classes modelling the IS Model you can declare the following dependency:

<dependency>
	<groupId>org.gcube.information-system</groupId>
	<artifactId>information-system-model</artifactId>
	<version>[5.0.0,6.0.0-SNAPSHOT)</version>
<dependency>

gCube Model

An example of instantiation of the IS model is the gCube Model.
  1. https://www.merriam-webster.com/dictionary/facet
  2. https://www.thefreedictionary.com/facet