ldp

package
v0.0.0-...-9de2c1c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2020 License: MIT Imports: 2 Imported by: 0

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

View Source
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

View Source
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

func GetConstrainedBy(e ld.Entity) interface{}

Links a resource with constraints that the server requires requests like creation and update to conform to.

func GetContains

func GetContains(e ld.Entity) interface{}

Links a container with resources created through the container.

func GetHasMemberRelation

func GetHasMemberRelation(e ld.Entity) 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 GetInbox

func GetInbox(e ld.Entity) interface{}

Links a resource to a container where notifications for the resource can be created and discovered.

func GetInsertedContentRelation

func GetInsertedContentRelation(e ld.Entity) 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 GetIsMemberOfRelation

func GetIsMemberOfRelation(e ld.Entity) 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 GetMember

func GetMember(e ld.Entity) interface{}

LDP servers should use this predicate as the membership predicate if there is no obvious predicate from an application vocabulary to use.

func GetMembershipResource

func GetMembershipResource(e ld.Entity) 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 GetPageSequence

func GetPageSequence(e ld.Entity) 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 GetPageSortCollation

func GetPageSortCollation(e ld.Entity) interface{}

The collation used to order the members across pages in a page sequence when comparing strings.

func GetPageSortCriteria

func GetPageSortCriteria(e ld.Entity) 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 GetPageSortOrder

func GetPageSortOrder(e ld.Entity) interface{}

The ascending/descending/etc order used to order the members across pages in a page sequence.

func GetPageSortPredicate

func GetPageSortPredicate(e ld.Entity) 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 IsBasicContainer

func IsBasicContainer(e ld.Entity) bool

Does the object quack like a(n) BasicContainer?

func IsContainer

func IsContainer(e ld.Entity) bool

Does the object quack like a(n) Container?

func IsDirectContainer

func IsDirectContainer(e ld.Entity) bool

Does the object quack like a(n) DirectContainer?

func IsIndirectContainer

func IsIndirectContainer(e ld.Entity) bool

Does the object quack like a(n) IndirectContainer?

func IsNonRDFSource

func IsNonRDFSource(e ld.Entity) bool

Does the object quack like a(n) NonRDFSource?

func IsPage

func IsPage(e ld.Entity) bool

Does the object quack like a(n) Page?

func IsPageSortCriterion

func IsPageSortCriterion(e ld.Entity) bool

Does the object quack like a(n) PageSortCriterion?

func IsRDFSource

func IsRDFSource(e ld.Entity) bool

Does the object quack like a(n) RDFSource?

func IsResource

func IsResource(e ld.Entity) bool

Does the object quack like a(n) Resource?

func SetConstrainedBy

func SetConstrainedBy(e ld.Entity, v interface{})

func SetContains

func SetContains(e ld.Entity, v interface{})

func SetHasMemberRelation

func SetHasMemberRelation(e ld.Entity, v interface{})

func SetInbox

func SetInbox(e ld.Entity, v interface{})

func SetInsertedContentRelation

func SetInsertedContentRelation(e ld.Entity, v interface{})

func SetIsMemberOfRelation

func SetIsMemberOfRelation(e ld.Entity, v interface{})

func SetMember

func SetMember(e ld.Entity, v interface{})

func SetMembershipResource

func SetMembershipResource(e ld.Entity, v interface{})

func SetPageSequence

func SetPageSequence(e ld.Entity, v interface{})

func SetPageSortCollation

func SetPageSortCollation(e ld.Entity, v interface{})

func SetPageSortCriteria

func SetPageSortCriteria(e ld.Entity, v interface{})

func SetPageSortOrder

func SetPageSortOrder(e ld.Entity, v interface{})

func SetPageSortPredicate

func SetPageSortPredicate(e ld.Entity, v interface{})

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

func AsContainer(e ld.Entity) Container

Ducktypes the object into a(n) Container.

func NewContainer

func NewContainer(id string) Container

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 AsPage

func AsPage(e ld.Entity) Page

Ducktypes the object into a(n) Page.

func NewPage

func NewPage(id string) Page

func (Page) Apply

func (obj Page) Apply(other ld.Entity, mergeArrays bool) error

Applies another object as a patch to this one. Implements ld.Entity.

func (Page) Get

func (obj Page) Get(key string) interface{}

Returns the named attribute. Implements ld.Entity.

func (Page) ID

func (obj Page) ID() string

Returns the object's @id. Implements ld.Entity.

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) IsNull

func (obj Page) IsNull() bool

Returns whether the wrapped object is null. Implements ld.Entity.

func (Page) Obj

func (obj Page) Obj() *ld.Object

Returns the wrapped plain ld.Object. Implements ld.Entity.

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) Set

func (obj Page) Set(key string, v interface{})

Sets the named attribute. Implements ld.Entity.

func (Page) SetInbox

func (obj Page) SetInbox(v interface{})

func (Page) SetPageSequence

func (obj Page) SetPageSequence(v interface{})

func (Page) SetPageSortCriteria

func (obj Page) SetPageSortCriteria(v interface{})

func (Page) Type

func (obj Page) Type() []string

Returns the object's @type. Implements ld.Entity.

func (Page) Value

func (obj Page) Value() string

Returns the object's @value. Implements ld.Entity.

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

func AsRDFSource(e ld.Entity) RDFSource

Ducktypes the object into a(n) RDFSource.

func NewRDFSource

func NewRDFSource(id string) RDFSource

type Resource

type Resource struct {
	// contains filtered or unexported fields
}

A HTTP-addressable resource whose lifecycle is managed by a LDP server.

func AsResource

func AsResource(e ld.Entity) Resource

Ducktypes the object into a(n) Resource.

func NewResource

func NewResource(id string) Resource

func (Resource) Apply

func (obj Resource) Apply(other ld.Entity, mergeArrays bool) error

Applies another object as a patch to this one. Implements ld.Entity.

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) Get

func (obj Resource) Get(key string) interface{}

Returns the named attribute. Implements ld.Entity.

func (Resource) ID

func (obj Resource) ID() string

Returns the object's @id. Implements ld.Entity.

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) IsNull

func (obj Resource) IsNull() bool

Returns whether the wrapped object is null. Implements ld.Entity.

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) Obj

func (obj Resource) Obj() *ld.Object

Returns the wrapped plain ld.Object. Implements ld.Entity.

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) Set

func (obj Resource) Set(key string, v interface{})

Sets the named attribute. Implements ld.Entity.

func (Resource) SetConstrainedBy

func (obj Resource) SetConstrainedBy(v interface{})

func (Resource) SetInbox

func (obj Resource) SetInbox(v interface{})

func (Resource) SetMember

func (obj Resource) SetMember(v interface{})

func (Resource) SetPageSequence

func (obj Resource) SetPageSequence(v interface{})

func (Resource) Type

func (obj Resource) Type() []string

Returns the object's @type. Implements ld.Entity.

func (Resource) Value

func (obj Resource) Value() string

Returns the object's @value. Implements ld.Entity.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL