1 /* 2 Copyright 2014 The Perkeep Authors 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 */ 16 17 // Package nodeattr contains constants for permanode attribute names. 18 // 19 // For all date values in RFC 3339 format, Perkeep additionally 20 // treats the special timezone offset -00:01 (one minute west of UTC) 21 // as meaning that the local time was known, but the location or 22 // timezone was not. Usually this is from EXIF files. 23 package nodeattr // import "perkeep.org/pkg/schema/nodeattr" 24 25 const ( 26 // Type is the Perkeep permanode type ("camliNodeType"). 27 // Importer-specific ones are of the form "domain.com:objecttype". 28 // Well-defined ones are documented in doc/schema/claims/attributes.txt. 29 Type = "camliNodeType" 30 31 // CamliContent is "camliContent", the blobref of the permanode's content. 32 // For files or images, the camliContent is fileref (the blobref of 33 // the "file" schema blob). 34 CamliContent = "camliContent" 35 36 // CamliContentImage is "camliContentImage", for when CamliContent is 37 // already set to the blobref of a non-image. 38 CamliContentImage = "camliContentImage" 39 40 // DateCreated is http://schema.org/dateCreated in RFC 3339 41 // format. 42 DateCreated = "dateCreated" 43 44 // StartDate is http://schema.org/startDate, the start date 45 // and time of the event or item, in RFC 3339 format. 46 StartDate = "startDate" 47 48 // DateModified is http://schema.org/dateModified, in RFC 3339 49 // format. 50 DateModified = "dateModified" 51 52 // DatePublished is http://schema.org/datePublished in RFC 53 // 3339 format. 54 DatePublished = "datePublished" 55 56 // TODO(mpl): ask Brad what he wants. The original DueDate from the .py code (which is not in schema.org), or that. 57 58 // PaymentDueDate is http://schema.org/paymentDueDate in RFC 59 // 3339 format. 60 PaymentDueDate = "paymentDueDate" 61 62 // Title is http://schema.org/title 63 Title = "title" 64 65 // Description is http://schema.org/description 66 // Value is plain text, no HTML, newlines are newlines. 67 Description = "description" 68 69 // Content is "content", used e.g. for the content of a tweet. 70 // TODO: define this more 71 Content = "content" 72 73 // URL is the item's original or origin URL. 74 URL = "url" 75 76 // LocationText is free-flowing text definition of a location or place, such 77 // as a city name, or a full postal address. 78 LocationText = "locationText" 79 80 Altitude = "altitude" 81 Latitude = "latitude" 82 Longitude = "longitude" 83 84 // StreetAddress is http://schema.org/streetAddress 85 StreetAddress = "streetAddress" 86 87 // AddressLocality is http://schema.org/addressLocality 88 // City, town, village, etc. name, plus any additional locality 89 // information, such as suburb name. Not as restricted as 90 // the UK postal meaning. 91 AddressLocality = "addressLocality" 92 93 // PostalCode is http://schema.org/postalCode 94 PostalCode = "postalCode" 95 96 // AddressRegion is http://schema.org/addressRegion 97 // Region, or state name. 98 AddressRegion = "addressRegion" 99 100 // AddressCountry is http://schema.org/addressCountry 101 AddressCountry = "addressCountry" 102 103 // GivenName is http://schema.org/givenName 104 GivenName = "givenName" 105 106 // FamilyName is http://schema.org/familyName 107 FamilyName = "familyName" 108 109 // CamliPathOrderColon is the prefix "camliPathOrder:". 110 // The attribute key should be followed by a uint64. The attribute value 111 // is an existing value of a camliPath element. 112 // CamliPathOrder optionally sorts sets already using "camliPath:foo" keys. 113 // The integers do not need to be contiguous, nor 0- (or 1-) based. 114 CamliPathOrderColon = "camliPathOrder:" 115 116 // DefaultVisibility is "camliDefVis", which affects the default 117 // visibility of the concerned permanode in the web UI. 118 DefaultVisibility = "camliDefVis" 119 120 // Version is http://schema.org/version 121 Version = "version" 122 123 // Starred is a boolean indicating a user "starred" or marked something as a favorite. 124 Starred = "starred" 125 126 // Folder is a string representing a logical collection of files grouped together 127 Folder = "folder" 128 )