-
Notifications
You must be signed in to change notification settings - Fork 0
/
news.go
26 lines (22 loc) · 1.14 KB
/
news.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
package citygraph
import "github.com/geomodulus/citygraph/pb"
// News Types
var (
// Vertex types
NewsPublisher = pb.Identifier{Value: "news-publisher"}
NewsArticle = pb.Identifier{Value: "news-article"}
NewsWireArticle = pb.Identifier{Value: "news-wire-article"}
NewsWireBulletin = pb.Identifier{Value: "news-wire-bulletin"}
NewsAuthor = pb.Identifier{Value: "news-author"}
NewsCategory = pb.Identifier{Value: "news-category"}
NewsImage = pb.Identifier{Value: "news-image"}
NewsGeoJSON = pb.Identifier{Value: "news-geojson"}
// Edge types
Published = pb.Identifier{Value: "published"} // author or publisher -> publish -> item.
PublishedBy = pb.Identifier{Value: "published-by"} // item -> published by -> author or publisher
PublishesAbout = pb.Identifier{Value: "publishes-about"} // item or publisher -> about -> a category.
ItemAbout = pb.Identifier{Value: "item-about"} // item or publisher -> about -> a category.
IllustratedBy = pb.Identifier{Value: "illustrated-by"}
CoversTopic = pb.Identifier{Value: "covers-topic"}
Featuring = pb.Identifier{Value: "featuring"}
)