diff --git a/astool/convert/convert.go b/astool/convert/convert.go index ac4fdc6..ccd87dd 100644 --- a/astool/convert/convert.go +++ b/astool/convert/convert.go @@ -375,6 +375,12 @@ func (c *Converter) convertToFiles(v vocabulary) (f []*File, e error) { FileName: "gen_doc.go", Directory: pub.WriteDir(), }) + // Constants + files, e = c.constFiles(c.GenRoot.PublicPackage(), v.allTypeArray(), v.allPropArray()) + if e != nil { + return + } + f = append(f, files...) // Resolvers files, e = c.resolverFiles(c.GenRoot.PublicPackage(), v.Manager, v) if e != nil { @@ -1147,6 +1153,21 @@ func (c *Converter) resolverFiles(pkg gen.Package, manGen *gen.ManagerGenerator, return } +// constFiles creates the files for constants. +func (c *Converter) constFiles(pkg gen.Package, types []*gen.TypeGenerator, props []*gen.PropertyGenerator) (files []*File, e error) { + consts := gen.GenerateConstants(types, props) + file := jen.NewFilePath(pkg.Path()) + for _, elem := range consts { + file.Add(elem).Line() + } + files = append(files, &File{ + F: file, + FileName: "gen_consts.go", + Directory: pkg.WriteDir(), + }) + return files, e +} + // allExtendsAreIn determines if a VocabularyType's parents are all already // converted to a TypeGenerator. func (c *Converter) allExtendsAreIn(registry *rdf.RDFRegistry, t rdf.VocabularyType, v map[string]*gen.TypeGenerator, genRefs map[string]*vocabulary) bool { diff --git a/astool/gen/constants.go b/astool/gen/constants.go new file mode 100644 index 0000000..40c56aa --- /dev/null +++ b/astool/gen/constants.go @@ -0,0 +1,38 @@ +package gen + +import ( + "fmt" + "github.com/dave/jennifer/jen" + "strings" +) + +// GenerateConstants generates string constants for the type and property +// names. Note that the properties that could be maps have an additional +// constant generatred. +func GenerateConstants(types []*TypeGenerator, props []*PropertyGenerator) (c []jen.Code) { + for _, t := range types { + c = append(c, + jen.Commentf( + "%s%sName is the string literal of the name for the %s type in the %s vocabulary.", t.VocabName(), t.TypeName(), t.TypeName(), t.VocabName(), + ).Line().Var().Id( + fmt.Sprintf("%s%sName", t.VocabName(), t.TypeName()), + ).String().Op("=").Lit(t.TypeName())) + } + for _, p := range props { + c = append(c, + jen.Commentf( + "%s%sPropertyName is the string literal of the name for the %s property in the %s vocabulary.", p.VocabName(), strings.Title(p.PropertyName()), p.PropertyName(), p.VocabName(), + ).Line().Var().Id( + fmt.Sprintf("%s%sPropertyName", p.VocabName(), strings.Title(p.PropertyName())), + ).String().Op("=").Lit(p.PropertyName())) + if p.HasNaturalLanguageMap() { + c = append(c, + jen.Commentf( + "%s%sPropertyMapName is the string literal of the name for the %s property in the %s vocabulary when it is a natural language map.", p.VocabName(), strings.Title(p.PropertyName()), p.PropertyName(), p.VocabName(), + ).Line().Var().Id( + fmt.Sprintf("%s%sPropertyMapName", p.VocabName(), strings.Title(p.PropertyName())), + ).String().Op("=").Lit(p.PropertyName() + "Map")) + } + } + return +} diff --git a/pub/resolvers.go b/pub/resolvers.go index f94df4a..6890682 100644 --- a/pub/resolvers.go +++ b/pub/resolvers.go @@ -9,8 +9,7 @@ import ( // IsAnActivityType returns true if the ActivityStreams value is an Activity or // extends from the Activity type. func IsAnActivityType(value vocab.Type) bool { - // TODO: Generate these strings as exported constants. - return value.GetTypeName() == "Activity" || streams.ActivityStreamsActivityIsExtendedBy(value) + return value.GetTypeName() == streams.ActivityStreamsActivityName || streams.ActivityStreamsActivityIsExtendedBy(value) } // addToCreate adds the object to the Create activity. diff --git a/streams/gen_consts.go b/streams/gen_consts.go new file mode 100644 index 0000000..3469c9e --- /dev/null +++ b/streams/gen_consts.go @@ -0,0 +1,391 @@ +package streams + +// ActivityStreamsAcceptName is the string literal of the name for the Accept type in the ActivityStreams vocabulary. +var ActivityStreamsAcceptName string = "Accept" + +// ActivityStreamsActivityName is the string literal of the name for the Activity type in the ActivityStreams vocabulary. +var ActivityStreamsActivityName string = "Activity" + +// ActivityStreamsAddName is the string literal of the name for the Add type in the ActivityStreams vocabulary. +var ActivityStreamsAddName string = "Add" + +// ActivityStreamsAnnounceName is the string literal of the name for the Announce type in the ActivityStreams vocabulary. +var ActivityStreamsAnnounceName string = "Announce" + +// ActivityStreamsApplicationName is the string literal of the name for the Application type in the ActivityStreams vocabulary. +var ActivityStreamsApplicationName string = "Application" + +// ActivityStreamsArriveName is the string literal of the name for the Arrive type in the ActivityStreams vocabulary. +var ActivityStreamsArriveName string = "Arrive" + +// ActivityStreamsArticleName is the string literal of the name for the Article type in the ActivityStreams vocabulary. +var ActivityStreamsArticleName string = "Article" + +// ActivityStreamsAudioName is the string literal of the name for the Audio type in the ActivityStreams vocabulary. +var ActivityStreamsAudioName string = "Audio" + +// ActivityStreamsBlockName is the string literal of the name for the Block type in the ActivityStreams vocabulary. +var ActivityStreamsBlockName string = "Block" + +// ActivityStreamsCollectionName is the string literal of the name for the Collection type in the ActivityStreams vocabulary. +var ActivityStreamsCollectionName string = "Collection" + +// ActivityStreamsCollectionPageName is the string literal of the name for the CollectionPage type in the ActivityStreams vocabulary. +var ActivityStreamsCollectionPageName string = "CollectionPage" + +// ActivityStreamsCreateName is the string literal of the name for the Create type in the ActivityStreams vocabulary. +var ActivityStreamsCreateName string = "Create" + +// ActivityStreamsDeleteName is the string literal of the name for the Delete type in the ActivityStreams vocabulary. +var ActivityStreamsDeleteName string = "Delete" + +// ActivityStreamsDislikeName is the string literal of the name for the Dislike type in the ActivityStreams vocabulary. +var ActivityStreamsDislikeName string = "Dislike" + +// ActivityStreamsDocumentName is the string literal of the name for the Document type in the ActivityStreams vocabulary. +var ActivityStreamsDocumentName string = "Document" + +// ActivityStreamsEventName is the string literal of the name for the Event type in the ActivityStreams vocabulary. +var ActivityStreamsEventName string = "Event" + +// ActivityStreamsFlagName is the string literal of the name for the Flag type in the ActivityStreams vocabulary. +var ActivityStreamsFlagName string = "Flag" + +// ActivityStreamsFollowName is the string literal of the name for the Follow type in the ActivityStreams vocabulary. +var ActivityStreamsFollowName string = "Follow" + +// ActivityStreamsGroupName is the string literal of the name for the Group type in the ActivityStreams vocabulary. +var ActivityStreamsGroupName string = "Group" + +// ActivityStreamsIgnoreName is the string literal of the name for the Ignore type in the ActivityStreams vocabulary. +var ActivityStreamsIgnoreName string = "Ignore" + +// ActivityStreamsImageName is the string literal of the name for the Image type in the ActivityStreams vocabulary. +var ActivityStreamsImageName string = "Image" + +// ActivityStreamsIntransitiveActivityName is the string literal of the name for the IntransitiveActivity type in the ActivityStreams vocabulary. +var ActivityStreamsIntransitiveActivityName string = "IntransitiveActivity" + +// ActivityStreamsInviteName is the string literal of the name for the Invite type in the ActivityStreams vocabulary. +var ActivityStreamsInviteName string = "Invite" + +// ActivityStreamsJoinName is the string literal of the name for the Join type in the ActivityStreams vocabulary. +var ActivityStreamsJoinName string = "Join" + +// ActivityStreamsLeaveName is the string literal of the name for the Leave type in the ActivityStreams vocabulary. +var ActivityStreamsLeaveName string = "Leave" + +// ActivityStreamsLikeName is the string literal of the name for the Like type in the ActivityStreams vocabulary. +var ActivityStreamsLikeName string = "Like" + +// ActivityStreamsLinkName is the string literal of the name for the Link type in the ActivityStreams vocabulary. +var ActivityStreamsLinkName string = "Link" + +// ActivityStreamsListenName is the string literal of the name for the Listen type in the ActivityStreams vocabulary. +var ActivityStreamsListenName string = "Listen" + +// ActivityStreamsMentionName is the string literal of the name for the Mention type in the ActivityStreams vocabulary. +var ActivityStreamsMentionName string = "Mention" + +// ActivityStreamsMoveName is the string literal of the name for the Move type in the ActivityStreams vocabulary. +var ActivityStreamsMoveName string = "Move" + +// ActivityStreamsNoteName is the string literal of the name for the Note type in the ActivityStreams vocabulary. +var ActivityStreamsNoteName string = "Note" + +// ActivityStreamsObjectName is the string literal of the name for the Object type in the ActivityStreams vocabulary. +var ActivityStreamsObjectName string = "Object" + +// ActivityStreamsOfferName is the string literal of the name for the Offer type in the ActivityStreams vocabulary. +var ActivityStreamsOfferName string = "Offer" + +// ActivityStreamsOrderedCollectionName is the string literal of the name for the OrderedCollection type in the ActivityStreams vocabulary. +var ActivityStreamsOrderedCollectionName string = "OrderedCollection" + +// ActivityStreamsOrderedCollectionPageName is the string literal of the name for the OrderedCollectionPage type in the ActivityStreams vocabulary. +var ActivityStreamsOrderedCollectionPageName string = "OrderedCollectionPage" + +// ActivityStreamsOrganizationName is the string literal of the name for the Organization type in the ActivityStreams vocabulary. +var ActivityStreamsOrganizationName string = "Organization" + +// ActivityStreamsPageName is the string literal of the name for the Page type in the ActivityStreams vocabulary. +var ActivityStreamsPageName string = "Page" + +// ActivityStreamsPersonName is the string literal of the name for the Person type in the ActivityStreams vocabulary. +var ActivityStreamsPersonName string = "Person" + +// ActivityStreamsPlaceName is the string literal of the name for the Place type in the ActivityStreams vocabulary. +var ActivityStreamsPlaceName string = "Place" + +// ActivityStreamsProfileName is the string literal of the name for the Profile type in the ActivityStreams vocabulary. +var ActivityStreamsProfileName string = "Profile" + +// ActivityStreamsQuestionName is the string literal of the name for the Question type in the ActivityStreams vocabulary. +var ActivityStreamsQuestionName string = "Question" + +// ActivityStreamsReadName is the string literal of the name for the Read type in the ActivityStreams vocabulary. +var ActivityStreamsReadName string = "Read" + +// ActivityStreamsRejectName is the string literal of the name for the Reject type in the ActivityStreams vocabulary. +var ActivityStreamsRejectName string = "Reject" + +// ActivityStreamsRelationshipName is the string literal of the name for the Relationship type in the ActivityStreams vocabulary. +var ActivityStreamsRelationshipName string = "Relationship" + +// ActivityStreamsRemoveName is the string literal of the name for the Remove type in the ActivityStreams vocabulary. +var ActivityStreamsRemoveName string = "Remove" + +// ActivityStreamsServiceName is the string literal of the name for the Service type in the ActivityStreams vocabulary. +var ActivityStreamsServiceName string = "Service" + +// ActivityStreamsTentativeAcceptName is the string literal of the name for the TentativeAccept type in the ActivityStreams vocabulary. +var ActivityStreamsTentativeAcceptName string = "TentativeAccept" + +// ActivityStreamsTentativeRejectName is the string literal of the name for the TentativeReject type in the ActivityStreams vocabulary. +var ActivityStreamsTentativeRejectName string = "TentativeReject" + +// ActivityStreamsTombstoneName is the string literal of the name for the Tombstone type in the ActivityStreams vocabulary. +var ActivityStreamsTombstoneName string = "Tombstone" + +// ActivityStreamsTravelName is the string literal of the name for the Travel type in the ActivityStreams vocabulary. +var ActivityStreamsTravelName string = "Travel" + +// ActivityStreamsUndoName is the string literal of the name for the Undo type in the ActivityStreams vocabulary. +var ActivityStreamsUndoName string = "Undo" + +// ActivityStreamsUpdateName is the string literal of the name for the Update type in the ActivityStreams vocabulary. +var ActivityStreamsUpdateName string = "Update" + +// ActivityStreamsVideoName is the string literal of the name for the Video type in the ActivityStreams vocabulary. +var ActivityStreamsVideoName string = "Video" + +// ActivityStreamsViewName is the string literal of the name for the View type in the ActivityStreams vocabulary. +var ActivityStreamsViewName string = "View" + +// ActivityStreamsAccuracyPropertyName is the string literal of the name for the accuracy property in the ActivityStreams vocabulary. +var ActivityStreamsAccuracyPropertyName string = "accuracy" + +// ActivityStreamsActorPropertyName is the string literal of the name for the actor property in the ActivityStreams vocabulary. +var ActivityStreamsActorPropertyName string = "actor" + +// ActivityStreamsAltitudePropertyName is the string literal of the name for the altitude property in the ActivityStreams vocabulary. +var ActivityStreamsAltitudePropertyName string = "altitude" + +// ActivityStreamsAnyOfPropertyName is the string literal of the name for the anyOf property in the ActivityStreams vocabulary. +var ActivityStreamsAnyOfPropertyName string = "anyOf" + +// ActivityStreamsAttachmentPropertyName is the string literal of the name for the attachment property in the ActivityStreams vocabulary. +var ActivityStreamsAttachmentPropertyName string = "attachment" + +// ActivityStreamsAttributedToPropertyName is the string literal of the name for the attributedTo property in the ActivityStreams vocabulary. +var ActivityStreamsAttributedToPropertyName string = "attributedTo" + +// ActivityStreamsAudiencePropertyName is the string literal of the name for the audience property in the ActivityStreams vocabulary. +var ActivityStreamsAudiencePropertyName string = "audience" + +// ActivityStreamsBccPropertyName is the string literal of the name for the bcc property in the ActivityStreams vocabulary. +var ActivityStreamsBccPropertyName string = "bcc" + +// ActivityStreamsBtoPropertyName is the string literal of the name for the bto property in the ActivityStreams vocabulary. +var ActivityStreamsBtoPropertyName string = "bto" + +// ActivityStreamsCcPropertyName is the string literal of the name for the cc property in the ActivityStreams vocabulary. +var ActivityStreamsCcPropertyName string = "cc" + +// ActivityStreamsClosedPropertyName is the string literal of the name for the closed property in the ActivityStreams vocabulary. +var ActivityStreamsClosedPropertyName string = "closed" + +// ActivityStreamsContentPropertyName is the string literal of the name for the content property in the ActivityStreams vocabulary. +var ActivityStreamsContentPropertyName string = "content" + +// ActivityStreamsContentPropertyMapName is the string literal of the name for the content property in the ActivityStreams vocabulary when it is a natural language map. +var ActivityStreamsContentPropertyMapName string = "contentMap" + +// ActivityStreamsContextPropertyName is the string literal of the name for the context property in the ActivityStreams vocabulary. +var ActivityStreamsContextPropertyName string = "context" + +// ActivityStreamsCurrentPropertyName is the string literal of the name for the current property in the ActivityStreams vocabulary. +var ActivityStreamsCurrentPropertyName string = "current" + +// ActivityStreamsDeletedPropertyName is the string literal of the name for the deleted property in the ActivityStreams vocabulary. +var ActivityStreamsDeletedPropertyName string = "deleted" + +// ActivityStreamsDescribesPropertyName is the string literal of the name for the describes property in the ActivityStreams vocabulary. +var ActivityStreamsDescribesPropertyName string = "describes" + +// ActivityStreamsDurationPropertyName is the string literal of the name for the duration property in the ActivityStreams vocabulary. +var ActivityStreamsDurationPropertyName string = "duration" + +// ActivityStreamsEndTimePropertyName is the string literal of the name for the endTime property in the ActivityStreams vocabulary. +var ActivityStreamsEndTimePropertyName string = "endTime" + +// ActivityStreamsFirstPropertyName is the string literal of the name for the first property in the ActivityStreams vocabulary. +var ActivityStreamsFirstPropertyName string = "first" + +// ActivityStreamsFollowersPropertyName is the string literal of the name for the followers property in the ActivityStreams vocabulary. +var ActivityStreamsFollowersPropertyName string = "followers" + +// ActivityStreamsFollowingPropertyName is the string literal of the name for the following property in the ActivityStreams vocabulary. +var ActivityStreamsFollowingPropertyName string = "following" + +// ActivityStreamsFormerTypePropertyName is the string literal of the name for the formerType property in the ActivityStreams vocabulary. +var ActivityStreamsFormerTypePropertyName string = "formerType" + +// ActivityStreamsGeneratorPropertyName is the string literal of the name for the generator property in the ActivityStreams vocabulary. +var ActivityStreamsGeneratorPropertyName string = "generator" + +// ActivityStreamsHeightPropertyName is the string literal of the name for the height property in the ActivityStreams vocabulary. +var ActivityStreamsHeightPropertyName string = "height" + +// ActivityStreamsHrefPropertyName is the string literal of the name for the href property in the ActivityStreams vocabulary. +var ActivityStreamsHrefPropertyName string = "href" + +// ActivityStreamsHreflangPropertyName is the string literal of the name for the hreflang property in the ActivityStreams vocabulary. +var ActivityStreamsHreflangPropertyName string = "hreflang" + +// ActivityStreamsIconPropertyName is the string literal of the name for the icon property in the ActivityStreams vocabulary. +var ActivityStreamsIconPropertyName string = "icon" + +// ActivityStreamsIdPropertyName is the string literal of the name for the id property in the ActivityStreams vocabulary. +var ActivityStreamsIdPropertyName string = "id" + +// ActivityStreamsImagePropertyName is the string literal of the name for the image property in the ActivityStreams vocabulary. +var ActivityStreamsImagePropertyName string = "image" + +// ActivityStreamsInReplyToPropertyName is the string literal of the name for the inReplyTo property in the ActivityStreams vocabulary. +var ActivityStreamsInReplyToPropertyName string = "inReplyTo" + +// ActivityStreamsInboxPropertyName is the string literal of the name for the inbox property in the ActivityStreams vocabulary. +var ActivityStreamsInboxPropertyName string = "inbox" + +// ActivityStreamsInstrumentPropertyName is the string literal of the name for the instrument property in the ActivityStreams vocabulary. +var ActivityStreamsInstrumentPropertyName string = "instrument" + +// ActivityStreamsItemsPropertyName is the string literal of the name for the items property in the ActivityStreams vocabulary. +var ActivityStreamsItemsPropertyName string = "items" + +// ActivityStreamsLastPropertyName is the string literal of the name for the last property in the ActivityStreams vocabulary. +var ActivityStreamsLastPropertyName string = "last" + +// ActivityStreamsLatitudePropertyName is the string literal of the name for the latitude property in the ActivityStreams vocabulary. +var ActivityStreamsLatitudePropertyName string = "latitude" + +// ActivityStreamsLikedPropertyName is the string literal of the name for the liked property in the ActivityStreams vocabulary. +var ActivityStreamsLikedPropertyName string = "liked" + +// ActivityStreamsLikesPropertyName is the string literal of the name for the likes property in the ActivityStreams vocabulary. +var ActivityStreamsLikesPropertyName string = "likes" + +// ActivityStreamsLocationPropertyName is the string literal of the name for the location property in the ActivityStreams vocabulary. +var ActivityStreamsLocationPropertyName string = "location" + +// ActivityStreamsLongitudePropertyName is the string literal of the name for the longitude property in the ActivityStreams vocabulary. +var ActivityStreamsLongitudePropertyName string = "longitude" + +// ActivityStreamsMediaTypePropertyName is the string literal of the name for the mediaType property in the ActivityStreams vocabulary. +var ActivityStreamsMediaTypePropertyName string = "mediaType" + +// ActivityStreamsNamePropertyName is the string literal of the name for the name property in the ActivityStreams vocabulary. +var ActivityStreamsNamePropertyName string = "name" + +// ActivityStreamsNamePropertyMapName is the string literal of the name for the name property in the ActivityStreams vocabulary when it is a natural language map. +var ActivityStreamsNamePropertyMapName string = "nameMap" + +// ActivityStreamsNextPropertyName is the string literal of the name for the next property in the ActivityStreams vocabulary. +var ActivityStreamsNextPropertyName string = "next" + +// ActivityStreamsObjectPropertyName is the string literal of the name for the object property in the ActivityStreams vocabulary. +var ActivityStreamsObjectPropertyName string = "object" + +// ActivityStreamsOneOfPropertyName is the string literal of the name for the oneOf property in the ActivityStreams vocabulary. +var ActivityStreamsOneOfPropertyName string = "oneOf" + +// ActivityStreamsOrderedItemsPropertyName is the string literal of the name for the orderedItems property in the ActivityStreams vocabulary. +var ActivityStreamsOrderedItemsPropertyName string = "orderedItems" + +// ActivityStreamsOriginPropertyName is the string literal of the name for the origin property in the ActivityStreams vocabulary. +var ActivityStreamsOriginPropertyName string = "origin" + +// ActivityStreamsOutboxPropertyName is the string literal of the name for the outbox property in the ActivityStreams vocabulary. +var ActivityStreamsOutboxPropertyName string = "outbox" + +// ActivityStreamsPartOfPropertyName is the string literal of the name for the partOf property in the ActivityStreams vocabulary. +var ActivityStreamsPartOfPropertyName string = "partOf" + +// ActivityStreamsPreferredUsernamePropertyName is the string literal of the name for the preferredUsername property in the ActivityStreams vocabulary. +var ActivityStreamsPreferredUsernamePropertyName string = "preferredUsername" + +// ActivityStreamsPreferredUsernamePropertyMapName is the string literal of the name for the preferredUsername property in the ActivityStreams vocabulary when it is a natural language map. +var ActivityStreamsPreferredUsernamePropertyMapName string = "preferredUsernameMap" + +// ActivityStreamsPrevPropertyName is the string literal of the name for the prev property in the ActivityStreams vocabulary. +var ActivityStreamsPrevPropertyName string = "prev" + +// ActivityStreamsPreviewPropertyName is the string literal of the name for the preview property in the ActivityStreams vocabulary. +var ActivityStreamsPreviewPropertyName string = "preview" + +// ActivityStreamsPublishedPropertyName is the string literal of the name for the published property in the ActivityStreams vocabulary. +var ActivityStreamsPublishedPropertyName string = "published" + +// ActivityStreamsRadiusPropertyName is the string literal of the name for the radius property in the ActivityStreams vocabulary. +var ActivityStreamsRadiusPropertyName string = "radius" + +// ActivityStreamsRelPropertyName is the string literal of the name for the rel property in the ActivityStreams vocabulary. +var ActivityStreamsRelPropertyName string = "rel" + +// ActivityStreamsRelationshipPropertyName is the string literal of the name for the relationship property in the ActivityStreams vocabulary. +var ActivityStreamsRelationshipPropertyName string = "relationship" + +// ActivityStreamsRepliesPropertyName is the string literal of the name for the replies property in the ActivityStreams vocabulary. +var ActivityStreamsRepliesPropertyName string = "replies" + +// ActivityStreamsResultPropertyName is the string literal of the name for the result property in the ActivityStreams vocabulary. +var ActivityStreamsResultPropertyName string = "result" + +// ActivityStreamsSharesPropertyName is the string literal of the name for the shares property in the ActivityStreams vocabulary. +var ActivityStreamsSharesPropertyName string = "shares" + +// ActivityStreamsStartIndexPropertyName is the string literal of the name for the startIndex property in the ActivityStreams vocabulary. +var ActivityStreamsStartIndexPropertyName string = "startIndex" + +// ActivityStreamsStartTimePropertyName is the string literal of the name for the startTime property in the ActivityStreams vocabulary. +var ActivityStreamsStartTimePropertyName string = "startTime" + +// ActivityStreamsStreamsPropertyName is the string literal of the name for the streams property in the ActivityStreams vocabulary. +var ActivityStreamsStreamsPropertyName string = "streams" + +// ActivityStreamsSubjectPropertyName is the string literal of the name for the subject property in the ActivityStreams vocabulary. +var ActivityStreamsSubjectPropertyName string = "subject" + +// ActivityStreamsSummaryPropertyName is the string literal of the name for the summary property in the ActivityStreams vocabulary. +var ActivityStreamsSummaryPropertyName string = "summary" + +// ActivityStreamsSummaryPropertyMapName is the string literal of the name for the summary property in the ActivityStreams vocabulary when it is a natural language map. +var ActivityStreamsSummaryPropertyMapName string = "summaryMap" + +// ActivityStreamsTagPropertyName is the string literal of the name for the tag property in the ActivityStreams vocabulary. +var ActivityStreamsTagPropertyName string = "tag" + +// ActivityStreamsTargetPropertyName is the string literal of the name for the target property in the ActivityStreams vocabulary. +var ActivityStreamsTargetPropertyName string = "target" + +// ActivityStreamsToPropertyName is the string literal of the name for the to property in the ActivityStreams vocabulary. +var ActivityStreamsToPropertyName string = "to" + +// ActivityStreamsTotalItemsPropertyName is the string literal of the name for the totalItems property in the ActivityStreams vocabulary. +var ActivityStreamsTotalItemsPropertyName string = "totalItems" + +// ActivityStreamsTypePropertyName is the string literal of the name for the type property in the ActivityStreams vocabulary. +var ActivityStreamsTypePropertyName string = "type" + +// ActivityStreamsUnitsPropertyName is the string literal of the name for the units property in the ActivityStreams vocabulary. +var ActivityStreamsUnitsPropertyName string = "units" + +// ActivityStreamsUpdatedPropertyName is the string literal of the name for the updated property in the ActivityStreams vocabulary. +var ActivityStreamsUpdatedPropertyName string = "updated" + +// ActivityStreamsUrlPropertyName is the string literal of the name for the url property in the ActivityStreams vocabulary. +var ActivityStreamsUrlPropertyName string = "url" + +// ActivityStreamsWidthPropertyName is the string literal of the name for the width property in the ActivityStreams vocabulary. +var ActivityStreamsWidthPropertyName string = "width"