-
Notifications
You must be signed in to change notification settings - Fork 3
/
constants.go
45 lines (31 loc) · 1.89 KB
/
constants.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package hypercat
const (
// HypercatVersion is the version of Hypercat this library currently supports
HypercatVersion = "3.0"
// HypercatMediaType is the default mime type of Hypercat resources
HypercatMediaType = "application/vnd.hypercat.catalogue+json"
// DescriptionRel is the URI for the hasDescription relationship
DescriptionRel = "urn:X-hypercat:rels:hasDescription:en"
// ContentTypeRel is the URI for the isContentType relationship
ContentTypeRel = "urn:X-hypercat:rels:isContentType"
// HomepageRel is the URI for hasHomepage relationship
HomepageRel = "urn:X-hypercat:rels:hasHomepage"
// ContainsContentTypeRel is the URI for the containsContentType relationship
ContainsContentTypeRel = "urn:X-hypercat:rels:containsContentType"
// SupportsSearchRel is the URI for the supportsSearch relationship
SupportsSearchRel = "urn:X-hypercat:rels:supportsSearch"
// SimpleSearchVal is the required value for catalogues that support Hypercat simple search.
SimpleSearchVal = "urn:Xhypercat:search:simple"
// GeoBoundSearchVal is the required value for catalogues that support geographic bounding box search
GeoBoundSearchVal = "urn:X-hypercat:search:geobound"
// LexicographicSearchVal is the required value for catalogues that support lexicographic searching
LexicographicSearchVal = "urn:X-hypercat:search:lexrange"
// MultiSearchVal is the required value for catalogues that support multi-search
MultiSearchVal = "urn:X-hypercat:search:multi"
// PrefixSearchVal is the required value for catalogues that support prefix search (formerly substring search)
PrefixSearchVal = "urn:X-hypercat:search:prefix"
// LongitudeRel is the standard URI indicating an WGS84 latitude relationship
LongitudeRel = "http://www.w3.org/2003/01/geo/wgs84_pos#long"
// LatitudeRel is the standard URI indicating an WGS84 longitude relationship
LatitudeRel = "http://www.w3.org/2003/01/geo/wgs84_pos#lat"
)