Documentation ¶
Overview ¶
GENERATED FILE, DO NOT EDIT. Please refer to: tools/nsgen/templates.go
GENERATED FILE, DO NOT EDIT. Please refer to: tools/nsgen/templates.go
GENERATED FILE, DO NOT EDIT. Please refer to: tools/nsgen/templates.go
GENERATED FILE, DO NOT EDIT. Please refer to: tools/nsgen/templates.go
Index ¶
- Constants
- Variables
- func GetConstrainedBy(e ld.Entity) interface{}
- func GetContains(e ld.Entity) interface{}
- func GetHasMemberRelation(e ld.Entity) interface{}
- func GetInbox(e ld.Entity) interface{}
- func GetInsertedContentRelation(e ld.Entity) interface{}
- func GetIsMemberOfRelation(e ld.Entity) interface{}
- func GetMember(e ld.Entity) interface{}
- func GetMembershipResource(e ld.Entity) interface{}
- func GetPageSequence(e ld.Entity) interface{}
- func GetPageSortCollation(e ld.Entity) interface{}
- func GetPageSortCriteria(e ld.Entity) interface{}
- func GetPageSortOrder(e ld.Entity) interface{}
- func GetPageSortPredicate(e ld.Entity) interface{}
- func IsBasicContainer(e ld.Entity) bool
- func IsContainer(e ld.Entity) bool
- func IsDirectContainer(e ld.Entity) bool
- func IsIndirectContainer(e ld.Entity) bool
- func IsNonRDFSource(e ld.Entity) bool
- func IsPage(e ld.Entity) bool
- func IsPageSortCriterion(e ld.Entity) bool
- func IsRDFSource(e ld.Entity) bool
- func IsResource(e ld.Entity) bool
- func SetConstrainedBy(e ld.Entity, v interface{})
- func SetContains(e ld.Entity, v interface{})
- func SetHasMemberRelation(e ld.Entity, v interface{})
- func SetInbox(e ld.Entity, v interface{})
- func SetInsertedContentRelation(e ld.Entity, v interface{})
- func SetIsMemberOfRelation(e ld.Entity, v interface{})
- func SetMember(e ld.Entity, v interface{})
- func SetMembershipResource(e ld.Entity, v interface{})
- func SetPageSequence(e ld.Entity, v interface{})
- func SetPageSortCollation(e ld.Entity, v interface{})
- func SetPageSortCriteria(e ld.Entity, v interface{})
- func SetPageSortOrder(e ld.Entity, v interface{})
- func SetPageSortPredicate(e ld.Entity, v interface{})
- type BasicContainer
- type Container
- func (obj Container) Contains() interface{}
- func (obj Container) HasMemberRelation() interface{}
- func (obj Container) InsertedContentRelation() interface{}
- func (obj Container) IsMemberOfRelation() interface{}
- func (obj Container) MembershipResource() interface{}
- func (obj Container) SetContains(v interface{})
- func (obj Container) SetHasMemberRelation(v interface{})
- func (obj Container) SetInsertedContentRelation(v interface{})
- func (obj Container) SetIsMemberOfRelation(v interface{})
- func (obj Container) SetMembershipResource(v interface{})
- type DirectContainer
- type IndirectContainer
- type NonRDFSource
- type Page
- func (obj Page) Apply(other ld.Entity, mergeArrays bool) error
- func (obj Page) Get(key string) interface{}
- func (obj Page) ID() string
- func (obj Page) Inbox() interface{}
- func (obj Page) IsNull() bool
- func (obj Page) Obj() *ld.Object
- func (obj Page) PageSequence() interface{}
- func (obj Page) PageSortCriteria() interface{}
- func (obj Page) Set(key string, v interface{})
- func (obj Page) SetInbox(v interface{})
- func (obj Page) SetPageSequence(v interface{})
- func (obj Page) SetPageSortCriteria(v interface{})
- func (obj Page) Type() []string
- func (obj Page) Value() string
- type PageSortCriterion
- func (obj PageSortCriterion) Apply(other ld.Entity, mergeArrays bool) error
- func (obj PageSortCriterion) Get(key string) interface{}
- func (obj PageSortCriterion) ID() string
- func (obj PageSortCriterion) Inbox() interface{}
- func (obj PageSortCriterion) IsNull() bool
- func (obj PageSortCriterion) Obj() *ld.Object
- func (obj PageSortCriterion) PageSequence() interface{}
- func (obj PageSortCriterion) PageSortCollation() interface{}
- func (obj PageSortCriterion) PageSortOrder() interface{}
- func (obj PageSortCriterion) PageSortPredicate() interface{}
- func (obj PageSortCriterion) Set(key string, v interface{})
- func (obj PageSortCriterion) SetInbox(v interface{})
- func (obj PageSortCriterion) SetPageSequence(v interface{})
- func (obj PageSortCriterion) SetPageSortCollation(v interface{})
- func (obj PageSortCriterion) SetPageSortOrder(v interface{})
- func (obj PageSortCriterion) SetPageSortPredicate(v interface{})
- func (obj PageSortCriterion) Type() []string
- func (obj PageSortCriterion) Value() string
- type RDFSource
- type Resource
- func (obj Resource) Apply(other ld.Entity, mergeArrays bool) error
- func (obj Resource) ConstrainedBy() interface{}
- func (obj Resource) Get(key string) interface{}
- func (obj Resource) ID() string
- func (obj Resource) Inbox() interface{}
- func (obj Resource) IsNull() bool
- func (obj Resource) Member() interface{}
- func (obj Resource) Obj() *ld.Object
- func (obj Resource) PageSequence() interface{}
- func (obj Resource) Set(key string, v interface{})
- func (obj Resource) SetConstrainedBy(v interface{})
- func (obj Resource) SetInbox(v interface{})
- func (obj Resource) SetMember(v interface{})
- func (obj Resource) SetPageSequence(v interface{})
- func (obj Resource) Type() []string
- func (obj Resource) Value() string
Constants ¶
const ( // Ascending order. Ascending = "http://www.w3.org/ns/ldp#Ascending" // Descending order. Descending = "http://www.w3.org/ns/ldp#Descending" // Used to indicate default and typical behavior for ldp:insertedContentRelation, where the member-URI value in the membership triple added when a creation request is successful is the URI assigned to the newly created resource. MemberSubject = "http://www.w3.org/ns/ldp#MemberSubject" // URI identifying a LDPC's containment triples, for example to allow clients to express interest in receiving them. PreferContainment = "http://www.w3.org/ns/ldp#PreferContainment" // Archaic alias for ldp:PreferMinimalContainer PreferEmptyContainer = "http://www.w3.org/ns/ldp#PreferEmptyContainer" // URI identifying a LDPC's membership triples, for example to allow clients to express interest in receiving them. PreferMembership = "http://www.w3.org/ns/ldp#PreferMembership" // URI identifying the subset of a LDPC's triples present in an empty LDPC, for example to allow clients to express interest in receiving them. Currently this excludes containment and membership triples, but in the future other exclusions might be added. This definition is written to automatically exclude those new classes of triples. PreferMinimalContainer = "http://www.w3.org/ns/ldp#PreferMinimalContainer" )
Variables ¶
var ( LDP = &meta.Namespace{ ID: "http://www.w3.org/ns/ldp#", Short: "ldp", Props: []*meta.Prop{ Prop_ConstrainedBy, Prop_Contains, Prop_HasMemberRelation, Prop_Inbox, Prop_InsertedContentRelation, Prop_IsMemberOfRelation, Prop_Member, Prop_MembershipResource, Prop_PageSequence, Prop_PageSortCollation, Prop_PageSortCriteria, Prop_PageSortOrder, Prop_PageSortPredicate, }, Types: map[string]*meta.Type{ "http://www.w3.org/ns/ldp#BasicContainer": Class_BasicContainer, "http://www.w3.org/ns/ldp#Container": Class_Container, "http://www.w3.org/ns/ldp#DirectContainer": Class_DirectContainer, "http://www.w3.org/ns/ldp#IndirectContainer": Class_IndirectContainer, "http://www.w3.org/ns/ldp#NonRDFSource": Class_NonRDFSource, "http://www.w3.org/ns/ldp#Page": Class_Page, "http://www.w3.org/ns/ldp#PageSortCriterion": Class_PageSortCriterion, "http://www.w3.org/ns/ldp#RDFSource": Class_RDFSource, "http://www.w3.org/ns/ldp#Resource": Class_Resource, }, } // Links a resource with constraints that the server requires requests like creation and update to conform to. Prop_ConstrainedBy = &meta.Prop{ ID: "http://www.w3.org/ns/ldp#constrainedBy", Short: "constrainedBy", Comment: "Links a resource with constraints that the server requires requests like creation and update to conform to.", } // Links a container with resources created through the container. Prop_Contains = &meta.Prop{ ID: "http://www.w3.org/ns/ldp#contains", Short: "contains", Comment: "Links a container with resources created through the container.", } // Indicates which predicate is used in membership triples, and that the membership triple pattern is < membership-constant-URI , object-of-hasMemberRelation, member-URI >. Prop_HasMemberRelation = &meta.Prop{ ID: "http://www.w3.org/ns/ldp#hasMemberRelation", Short: "hasMemberRelation", Comment: "Indicates which predicate is used in membership triples, and that the membership triple pattern is < membership-constant-URI , object-of-hasMemberRelation, member-URI >.", } // Links a resource to a container where notifications for the resource can be created and discovered. Prop_Inbox = &meta.Prop{ ID: "http://www.w3.org/ns/ldp#inbox", Short: "inbox", Comment: "Links a resource to a container where notifications for the resource can be created and discovered.", } // Indicates which triple in a creation request should be used as the member-URI value in the membership triple added when the creation request is successful. Prop_InsertedContentRelation = &meta.Prop{ ID: "http://www.w3.org/ns/ldp#insertedContentRelation", Short: "insertedContentRelation", Comment: "Indicates which triple in a creation request should be used as the member-URI value in the membership triple added when the creation request is successful.", } // Indicates which predicate is used in membership triples, and that the membership triple pattern is < member-URI , object-of-isMemberOfRelation, membership-constant-URI >. Prop_IsMemberOfRelation = &meta.Prop{ ID: "http://www.w3.org/ns/ldp#isMemberOfRelation", Short: "isMemberOfRelation", Comment: "Indicates which predicate is used in membership triples, and that the membership triple pattern is < member-URI , object-of-isMemberOfRelation, membership-constant-URI >.", } // LDP servers should use this predicate as the membership predicate if there is no obvious predicate from an application vocabulary to use. Prop_Member = &meta.Prop{ ID: "http://www.w3.org/ns/ldp#member", Short: "member", Comment: "LDP servers should use this predicate as the membership predicate if there is no obvious predicate from an application vocabulary to use.", } // Indicates the membership-constant-URI in a membership triple. Depending upon the membership triple pattern a container uses, as indicated by the presence of ldp:hasMemberRelation or ldp:isMemberOfRelation, the membership-constant-URI might occupy either the subject or object position in membership triples. Prop_MembershipResource = &meta.Prop{ ID: "http://www.w3.org/ns/ldp#membershipResource", Short: "membershipResource", Comment: "Indicates the membership-constant-URI in a membership triple. Depending upon the membership triple pattern a container uses, as indicated by the presence of ldp:hasMemberRelation or ldp:isMemberOfRelation, the membership-constant-URI might occupy either the subject or object position in membership triples.", } // Link to a page sequence resource, as defined by LDP Paging. Typically used to communicate the sorting criteria used to allocate LDPC members to pages. Prop_PageSequence = &meta.Prop{ ID: "http://www.w3.org/ns/ldp#pageSequence", Short: "pageSequence", Comment: "Link to a page sequence resource, as defined by LDP Paging. Typically used to communicate the sorting criteria used to allocate LDPC members to pages.", } // The collation used to order the members across pages in a page sequence when comparing strings. Prop_PageSortCollation = &meta.Prop{ ID: "http://www.w3.org/ns/ldp#pageSortCollation", Short: "pageSortCollation", Comment: "The collation used to order the members across pages in a page sequence when comparing strings.", } // Link to the list of sorting criteria used by the server in a representation. Typically used on Link response headers as an extension link relation URI in the rel= parameter. Prop_PageSortCriteria = &meta.Prop{ ID: "http://www.w3.org/ns/ldp#pageSortCriteria", Short: "pageSortCriteria", Comment: "Link to the list of sorting criteria used by the server in a representation. Typically used on Link response headers as an extension link relation URI in the rel= parameter.", } // The ascending/descending/etc order used to order the members across pages in a page sequence. Prop_PageSortOrder = &meta.Prop{ ID: "http://www.w3.org/ns/ldp#pageSortOrder", Short: "pageSortOrder", Comment: "The ascending/descending/etc order used to order the members across pages in a page sequence.", } // Predicate used to specify the order of the members across a page sequence's in-sequence page resources; it asserts nothing about the order of members in the representation of a single page. Prop_PageSortPredicate = &meta.Prop{ ID: "http://www.w3.org/ns/ldp#pageSortPredicate", Short: "pageSortPredicate", Comment: "Predicate used to specify the order of the members across a page sequence's in-sequence page resources; it asserts nothing about the order of members in the representation of a single page.", } // An LDPC that uses a predefined predicate to simply link to its contained resources. Class_BasicContainer = &meta.Type{ ID: "http://www.w3.org/ns/ldp#BasicContainer", Short: "BasicContainer", Cast: func(e ld.Entity) ld.Entity { return AsBasicContainer(e) }, SubClassOf: []*meta.Type{ Class_Container, }, Props: []*meta.Prop{}, } // A Linked Data Platform RDF Source (LDP-RS) that also conforms to additional patterns and conventions for managing membership. Readers should refer to the specification defining this ontology for the list of behaviors associated with it. Class_Container = &meta.Type{ ID: "http://www.w3.org/ns/ldp#Container", Short: "Container", Cast: func(e ld.Entity) ld.Entity { return AsContainer(e) }, SubClassOf: []*meta.Type{ Class_RDFSource, }, Props: []*meta.Prop{ Prop_Contains, Prop_HasMemberRelation, Prop_InsertedContentRelation, Prop_IsMemberOfRelation, Prop_MembershipResource, }, } // An LDPC that is similar to a LDP-DC but it allows an indirection with the ability to list as member a resource, such as a URI representing a real-world object, that is different from the resource that is created. Class_DirectContainer = &meta.Type{ ID: "http://www.w3.org/ns/ldp#DirectContainer", Short: "DirectContainer", Cast: func(e ld.Entity) ld.Entity { return AsDirectContainer(e) }, SubClassOf: []*meta.Type{ Class_Container, }, Props: []*meta.Prop{}, } // An LDPC that has the flexibility of choosing what form the membership triples take. Class_IndirectContainer = &meta.Type{ ID: "http://www.w3.org/ns/ldp#IndirectContainer", Short: "IndirectContainer", Cast: func(e ld.Entity) ld.Entity { return AsIndirectContainer(e) }, SubClassOf: []*meta.Type{ Class_Container, }, Props: []*meta.Prop{}, } // A Linked Data Platform Resource (LDPR) whose state is NOT represented as RDF. Class_NonRDFSource = &meta.Type{ ID: "http://www.w3.org/ns/ldp#NonRDFSource", Short: "NonRDFSource", Cast: func(e ld.Entity) ld.Entity { return AsNonRDFSource(e) }, SubClassOf: []*meta.Type{ Class_Resource, }, Props: []*meta.Prop{}, } // URI signifying that the resource is an in-sequence page resource, as defined by LDP Paging. Typically used on Link rel='type' response headers. Class_Page = &meta.Type{ ID: "http://www.w3.org/ns/ldp#Page", Short: "Page", Cast: func(e ld.Entity) ld.Entity { return AsPage(e) }, SubClassOf: []*meta.Type{}, Props: []*meta.Prop{ Prop_Inbox, Prop_PageSequence, Prop_PageSortCriteria, }, } // Element in the list of sorting criteria used by the server to assign container members to pages. Class_PageSortCriterion = &meta.Type{ ID: "http://www.w3.org/ns/ldp#PageSortCriterion", Short: "PageSortCriterion", Cast: func(e ld.Entity) ld.Entity { return AsPageSortCriterion(e) }, SubClassOf: []*meta.Type{}, Props: []*meta.Prop{ Prop_Inbox, Prop_PageSequence, Prop_PageSortCollation, Prop_PageSortOrder, Prop_PageSortPredicate, }, } // A Linked Data Platform Resource (LDPR) whose state is represented as RDF. Class_RDFSource = &meta.Type{ ID: "http://www.w3.org/ns/ldp#RDFSource", Short: "RDFSource", Cast: func(e ld.Entity) ld.Entity { return AsRDFSource(e) }, SubClassOf: []*meta.Type{ Class_Resource, }, Props: []*meta.Prop{}, } // A HTTP-addressable resource whose lifecycle is managed by a LDP server. Class_Resource = &meta.Type{ ID: "http://www.w3.org/ns/ldp#Resource", Short: "Resource", Cast: func(e ld.Entity) ld.Entity { return AsResource(e) }, SubClassOf: []*meta.Type{}, Props: []*meta.Prop{ Prop_ConstrainedBy, Prop_Inbox, Prop_Member, Prop_PageSequence, }, } )
Functions ¶
func GetConstrainedBy ¶
Links a resource with constraints that the server requires requests like creation and update to conform to.
func GetContains ¶
Links a container with resources created through the container.
func GetHasMemberRelation ¶
Indicates which predicate is used in membership triples, and that the membership triple pattern is < membership-constant-URI , object-of-hasMemberRelation, member-URI >.
func GetInbox ¶
Links a resource to a container where notifications for the resource can be created and discovered.
func GetInsertedContentRelation ¶
Indicates which triple in a creation request should be used as the member-URI value in the membership triple added when the creation request is successful.
func GetIsMemberOfRelation ¶
Indicates which predicate is used in membership triples, and that the membership triple pattern is < member-URI , object-of-isMemberOfRelation, membership-constant-URI >.
func GetMember ¶
LDP servers should use this predicate as the membership predicate if there is no obvious predicate from an application vocabulary to use.
func GetMembershipResource ¶
Indicates the membership-constant-URI in a membership triple. Depending upon the membership triple pattern a container uses, as indicated by the presence of ldp:hasMemberRelation or ldp:isMemberOfRelation, the membership-constant-URI might occupy either the subject or object position in membership triples.
func GetPageSequence ¶
Link to a page sequence resource, as defined by LDP Paging. Typically used to communicate the sorting criteria used to allocate LDPC members to pages.
func GetPageSortCollation ¶
The collation used to order the members across pages in a page sequence when comparing strings.
func GetPageSortCriteria ¶
Link to the list of sorting criteria used by the server in a representation. Typically used on Link response headers as an extension link relation URI in the rel= parameter.
func GetPageSortOrder ¶
The ascending/descending/etc order used to order the members across pages in a page sequence.
func GetPageSortPredicate ¶
Predicate used to specify the order of the members across a page sequence's in-sequence page resources; it asserts nothing about the order of members in the representation of a single page.
func IsBasicContainer ¶
Does the object quack like a(n) BasicContainer?
func IsDirectContainer ¶
Does the object quack like a(n) DirectContainer?
func IsIndirectContainer ¶
Does the object quack like a(n) IndirectContainer?
func IsNonRDFSource ¶
Does the object quack like a(n) NonRDFSource?
func IsPageSortCriterion ¶
Does the object quack like a(n) PageSortCriterion?
func SetConstrainedBy ¶
func SetContains ¶
func SetHasMemberRelation ¶
func SetIsMemberOfRelation ¶
func SetMembershipResource ¶
func SetPageSequence ¶
func SetPageSortCollation ¶
func SetPageSortCriteria ¶
func SetPageSortOrder ¶
func SetPageSortPredicate ¶
Types ¶
type BasicContainer ¶
type BasicContainer struct{ Container }
An LDPC that uses a predefined predicate to simply link to its contained resources.
func AsBasicContainer ¶
func AsBasicContainer(e ld.Entity) BasicContainer
Ducktypes the object into a(n) BasicContainer.
func NewBasicContainer ¶
func NewBasicContainer(id string) BasicContainer
type Container ¶
type Container struct{ RDFSource }
A Linked Data Platform RDF Source (LDP-RS) that also conforms to additional patterns and conventions for managing membership. Readers should refer to the specification defining this ontology for the list of behaviors associated with it.
func AsContainer ¶
Ducktypes the object into a(n) Container.
func NewContainer ¶
func (Container) Contains ¶
func (obj Container) Contains() interface{}
Links a container with resources created through the container.
func (Container) HasMemberRelation ¶
func (obj Container) HasMemberRelation() interface{}
Indicates which predicate is used in membership triples, and that the membership triple pattern is < membership-constant-URI , object-of-hasMemberRelation, member-URI >.
func (Container) InsertedContentRelation ¶
func (obj Container) InsertedContentRelation() interface{}
Indicates which triple in a creation request should be used as the member-URI value in the membership triple added when the creation request is successful.
func (Container) IsMemberOfRelation ¶
func (obj Container) IsMemberOfRelation() interface{}
Indicates which predicate is used in membership triples, and that the membership triple pattern is < member-URI , object-of-isMemberOfRelation, membership-constant-URI >.
func (Container) MembershipResource ¶
func (obj Container) MembershipResource() interface{}
Indicates the membership-constant-URI in a membership triple. Depending upon the membership triple pattern a container uses, as indicated by the presence of ldp:hasMemberRelation or ldp:isMemberOfRelation, the membership-constant-URI might occupy either the subject or object position in membership triples.
func (Container) SetContains ¶
func (obj Container) SetContains(v interface{})
func (Container) SetHasMemberRelation ¶
func (obj Container) SetHasMemberRelation(v interface{})
func (Container) SetInsertedContentRelation ¶
func (obj Container) SetInsertedContentRelation(v interface{})
func (Container) SetIsMemberOfRelation ¶
func (obj Container) SetIsMemberOfRelation(v interface{})
func (Container) SetMembershipResource ¶
func (obj Container) SetMembershipResource(v interface{})
type DirectContainer ¶
type DirectContainer struct{ Container }
An LDPC that is similar to a LDP-DC but it allows an indirection with the ability to list as member a resource, such as a URI representing a real-world object, that is different from the resource that is created.
func AsDirectContainer ¶
func AsDirectContainer(e ld.Entity) DirectContainer
Ducktypes the object into a(n) DirectContainer.
func NewDirectContainer ¶
func NewDirectContainer(id string) DirectContainer
type IndirectContainer ¶
type IndirectContainer struct{ Container }
An LDPC that has the flexibility of choosing what form the membership triples take.
func AsIndirectContainer ¶
func AsIndirectContainer(e ld.Entity) IndirectContainer
Ducktypes the object into a(n) IndirectContainer.
func NewIndirectContainer ¶
func NewIndirectContainer(id string) IndirectContainer
type NonRDFSource ¶
type NonRDFSource struct{ Resource }
A Linked Data Platform Resource (LDPR) whose state is NOT represented as RDF.
func AsNonRDFSource ¶
func AsNonRDFSource(e ld.Entity) NonRDFSource
Ducktypes the object into a(n) NonRDFSource.
func NewNonRDFSource ¶
func NewNonRDFSource(id string) NonRDFSource
type Page ¶
type Page struct {
// contains filtered or unexported fields
}
URI signifying that the resource is an in-sequence page resource, as defined by LDP Paging. Typically used on Link rel='type' response headers.
func (Page) Inbox ¶
func (obj Page) Inbox() interface{}
Links a resource to a container where notifications for the resource can be created and discovered.
func (Page) PageSequence ¶
func (obj Page) PageSequence() interface{}
Link to a page sequence resource, as defined by LDP Paging. Typically used to communicate the sorting criteria used to allocate LDPC members to pages.
func (Page) PageSortCriteria ¶
func (obj Page) PageSortCriteria() interface{}
Link to the list of sorting criteria used by the server in a representation. Typically used on Link response headers as an extension link relation URI in the rel= parameter.
func (Page) SetPageSequence ¶
func (obj Page) SetPageSequence(v interface{})
func (Page) SetPageSortCriteria ¶
func (obj Page) SetPageSortCriteria(v interface{})
type PageSortCriterion ¶
type PageSortCriterion struct {
// contains filtered or unexported fields
}
Element in the list of sorting criteria used by the server to assign container members to pages.
func AsPageSortCriterion ¶
func AsPageSortCriterion(e ld.Entity) PageSortCriterion
Ducktypes the object into a(n) PageSortCriterion.
func NewPageSortCriterion ¶
func NewPageSortCriterion(id string) PageSortCriterion
func (PageSortCriterion) Apply ¶
func (obj PageSortCriterion) Apply(other ld.Entity, mergeArrays bool) error
Applies another object as a patch to this one. Implements ld.Entity.
func (PageSortCriterion) Get ¶
func (obj PageSortCriterion) Get(key string) interface{}
Returns the named attribute. Implements ld.Entity.
func (PageSortCriterion) ID ¶
func (obj PageSortCriterion) ID() string
Returns the object's @id. Implements ld.Entity.
func (PageSortCriterion) Inbox ¶
func (obj PageSortCriterion) Inbox() interface{}
Links a resource to a container where notifications for the resource can be created and discovered.
func (PageSortCriterion) IsNull ¶
func (obj PageSortCriterion) IsNull() bool
Returns whether the wrapped object is null. Implements ld.Entity.
func (PageSortCriterion) Obj ¶
func (obj PageSortCriterion) Obj() *ld.Object
Returns the wrapped plain ld.Object. Implements ld.Entity.
func (PageSortCriterion) PageSequence ¶
func (obj PageSortCriterion) PageSequence() interface{}
Link to a page sequence resource, as defined by LDP Paging. Typically used to communicate the sorting criteria used to allocate LDPC members to pages.
func (PageSortCriterion) PageSortCollation ¶
func (obj PageSortCriterion) PageSortCollation() interface{}
The collation used to order the members across pages in a page sequence when comparing strings.
func (PageSortCriterion) PageSortOrder ¶
func (obj PageSortCriterion) PageSortOrder() interface{}
The ascending/descending/etc order used to order the members across pages in a page sequence.
func (PageSortCriterion) PageSortPredicate ¶
func (obj PageSortCriterion) PageSortPredicate() interface{}
Predicate used to specify the order of the members across a page sequence's in-sequence page resources; it asserts nothing about the order of members in the representation of a single page.
func (PageSortCriterion) Set ¶
func (obj PageSortCriterion) Set(key string, v interface{})
Sets the named attribute. Implements ld.Entity.
func (PageSortCriterion) SetInbox ¶
func (obj PageSortCriterion) SetInbox(v interface{})
func (PageSortCriterion) SetPageSequence ¶
func (obj PageSortCriterion) SetPageSequence(v interface{})
func (PageSortCriterion) SetPageSortCollation ¶
func (obj PageSortCriterion) SetPageSortCollation(v interface{})
func (PageSortCriterion) SetPageSortOrder ¶
func (obj PageSortCriterion) SetPageSortOrder(v interface{})
func (PageSortCriterion) SetPageSortPredicate ¶
func (obj PageSortCriterion) SetPageSortPredicate(v interface{})
func (PageSortCriterion) Type ¶
func (obj PageSortCriterion) Type() []string
Returns the object's @type. Implements ld.Entity.
func (PageSortCriterion) Value ¶
func (obj PageSortCriterion) Value() string
Returns the object's @value. Implements ld.Entity.
type RDFSource ¶
type RDFSource struct{ Resource }
A Linked Data Platform Resource (LDPR) whose state is represented as RDF.
func AsRDFSource ¶
Ducktypes the object into a(n) RDFSource.
func NewRDFSource ¶
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
A HTTP-addressable resource whose lifecycle is managed by a LDP server.
func NewResource ¶
func (Resource) ConstrainedBy ¶
func (obj Resource) ConstrainedBy() interface{}
Links a resource with constraints that the server requires requests like creation and update to conform to.
func (Resource) Inbox ¶
func (obj Resource) Inbox() interface{}
Links a resource to a container where notifications for the resource can be created and discovered.
func (Resource) Member ¶
func (obj Resource) Member() interface{}
LDP servers should use this predicate as the membership predicate if there is no obvious predicate from an application vocabulary to use.
func (Resource) PageSequence ¶
func (obj Resource) PageSequence() interface{}
Link to a page sequence resource, as defined by LDP Paging. Typically used to communicate the sorting criteria used to allocate LDPC members to pages.
func (Resource) SetConstrainedBy ¶
func (obj Resource) SetConstrainedBy(v interface{})
func (Resource) SetPageSequence ¶
func (obj Resource) SetPageSequence(v interface{})