Updated comment for the Relationship object

This commit is contained in:
Marius Orcsik 2021-11-07 15:06:16 +01:00
parent 0895ecc34f
commit bd0dbddb26
No known key found for this signature in database
GPG key ID: DBF5E47F5DBC4D21
2 changed files with 7 additions and 7 deletions

View file

@ -392,7 +392,7 @@ func (m MimeType) GobEncode() ([]byte, error) {
}
return nil, errors.New(fmt.Sprintf("GobEncode is not implemented for %T", m))
}
*/
*/
// ToLink returns a Link pointer to the data in the current Item
func ToLink(it Item) (*Link, error) {
@ -550,7 +550,7 @@ func (s *Source) GobDecode([]byte) error {
func (s Source) GobEncode() ([]byte, error) {
return nil, errors.New(fmt.Sprintf("GobEncode is not implemented for %T", s))
}
*/
*/
// Equals verifies if our receiver Object is equals with the "with" Object
func (o Object) Equals(with Item) bool {

View file

@ -11,11 +11,11 @@ import (
// Relationship describes a relationship between two individuals.
// The subject and object properties are used to identify the connected individuals.
//See 5.2 Representing Relationships Between Entities for additional information.
// 5.2: The relationship property specifies the kind of relationship that exists between the two individuals identified
// by the subject and object properties. Used together, these three properties form what is commonly known
// as a "reified statement" where subject identifies the subject, relationship identifies the predicate,
// and object identifies the object.
// See 5.2 Representing Relationships Between Entities for additional information.
// 5.2: The relationship property specifies the kind of relationship that exists between the two individuals identified
// by the subject and object properties. Used together, these three properties form what is commonly known
// as a "reified statement" where subject identifies the subject, relationship identifies the predicate,
// and object identifies the object.
type Relationship struct {
// ID provides the globally unique identifier for anActivity Pub Object or Link.
ID ID `jsonld:"id,omitempty"`