forked from thingful/hypercat-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.go
More file actions
45 lines (31 loc) · 1.88 KB
/
constants.go
File metadata and controls
45 lines (31 loc) · 1.88 KB
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 = "2.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:Xhypercat:search:lexrange"
// MultiSearchVal is the required value for catalogues that support multi-search
MultiSearchVal = "urn:X-hypercat:search:multi"
// SubstringSearchVal is the required value for catalogues that support substring search
SubstringSearchVal = "urn:X-hypercat:search:substring"
// 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"
)