semantic-network
Version:
A utility library for manipulating a list of links that form a semantic interface to a network of resources.
134 lines • 4.36 kB
JavaScript
/**
* @see http://en.wikipedia.org/wiki/Link_relation
* @see http://www.iana.org/assignments/link-relations/link-relations.xhtml
*/
export class LinkRelation {
}
LinkRelation.Accepted = 'accepted';
/**
* Conveys an identifier for the link's context.
* @see http://www.iana.org/go/rfc4287
* @link Canonical
* @link Alternate
* @link Via
* @link Self
*/
LinkRelation.Self = 'self';
/**
* Refers to a parent document in a hierarchy of documents.
* @see http://www.iana.org/go/rfc8288
*/
LinkRelation.Up = 'up';
/**
* Refers to a resource that can be used to search through the link's context and related resources.
* @see http://www.opensearch.org/Specifications/OpenSearch/1.1
*/
LinkRelation.Search = 'search';
/**
* Refers to an icon representing the link's context.
* @see http://www.w3.org/TR/html5/links.html#link-type-icon
*/
LinkRelation.Icon = 'icon';
/**
* The target IRI points to a resource where a submission form can be obtained.
* @see http://www.iana.org/go/rfc6861
*/
LinkRelation.CreateForm = 'create-form';
/**
* The target IRI points to a resource where a submission form for editing associated resource can be obtained.
* @see http://www.iana.org/go/rfc6861
*/
LinkRelation.EditForm = 'edit-form';
/**
* The target IRI points to a resource where a submission form for searching associated resource can be obtained.
* @see http://www.iana.org/go/rfc6861
*/
LinkRelation.SearchForm = 'search-form';
/**
* The target IRI points to a resource where a submission form for editing associated resource can be obtained.
* @see http://www.iana.org/go/rfc6861
*/
LinkRelation.ApplyForm = 'apply-form';
/**
* The target IRI points to a resource where the submission form should be sent.
* @see http://www.iana.org/go/rfc6861
*/
LinkRelation.Submit = 'submit';
/**
* Designates the preferred version of a resource (the IRI and its contents).
* @see http://www.iana.org/go/rfc6596
*/
LinkRelation.Canonical = 'canonical';
/**
* Indicates a resource where payment is accepted.
* @see http://www.iana.org/go/rfc8288
*/
LinkRelation.Payment = 'payment';
/**
* Points to a resource containing the version history for the context
* @see http://www.iana.org/go/rfc5829
*/
LinkRelation.VersionHistory = 'version-history';
/**
* Refers to a substitute for this context.
* @see http://www.w3.org/TR/html5/links.html#link-type-alternate
* @link Canonical
* @link Alternate
* @link Via
* @link Self
*/
LinkRelation.Alternate = 'alternate';
/**
* Identifying that a resource representation conforms to a certain profile, without affecting the
* non-profile semantics of the resource representation.
* @see https://tools.ietf.org/html/rfc6906
*/
LinkRelation.Profile = 'profile';
/**
* Refers to a resource containing the most recent item(s) in a collection of resources.
* @see https://tools.ietf.org/html/rfc5005
*/
LinkRelation.Current = 'current';
/**
* Identifies a resource that represents the context's status.
* @see https://tools.ietf.org/html/rfc8631
*/
LinkRelation.Status = 'status';
/**
* Refers to a list of patent disclosures made with respect to material for which 'disclosure' relation is specified.
*
* A set of disclosures for a job application step (for a job seeker) - these are not the value themselves
* but a record that the disclosure was made (or is available to be made)
* @see https://tools.ietf.org/html/rfc6579
*/
LinkRelation.Disclosure = 'disclosure';
/**
* Identifies a resource that is the source of the information in the link's context.
* @see https://tools.ietf.org/html/rfc4287
* @link Canonical
* @link Alternate
* @link Describes
* @link Self
*/
LinkRelation.Via = 'via';
/**
* The relationship A 'describes' B asserts that resource A provides a description of resource B. There
* are no constraints on the format or representation of either A or B, neither are there any further
* constraints on either resource.
* @see https://tools.ietf.org/html/rfc6892
* @link Canonical
* @link Alternate
* @link Via
* @link Self
*/
LinkRelation.Describes = 'describes';
/**
* Refers to a resource providing information about the link's context.
* @see http://www.w3.org/TR/powder-dr/#assoc-linking
* @link Canonical
* @link Alternate
* @link Via
* @link Self
*/
LinkRelation.DescribedBy = 'describedby';
//# sourceMappingURL=linkRelation.js.map