-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from dgraph-io/donors-dada
Donors dada
- Loading branch information
Showing
18 changed files
with
4,816 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
"School.ID","School.Name","School.Metro.Type","School.Percentage.Free.Lunch","School.State","School.Zip","School.City","School.County","School.District","LAT","LNG" | ||
"00064eac8b3d1f6dea8a07559922ed58","Leadership Public School","urban","46","California",95122,"San Jose","Santa Clara","San Jose Unified School Dist",37.328684,-121.835269 | ||
"000a21e544223a6cf1f3a79136275584","Franklin High School","rural","82","California",95215,"Stockton","San Joaquin","Stockton Unif School District",37.949421,-121.157283 | ||
"000ef91ec1409e4e04f4fca354614919","Paradise Intermediate School","town","71","California",95969,"Paradise","Butte","Paradise Unified Sch District",39.716846,-121.64618 | ||
"00100ceb5adae22eb6f42ce13155f59c","Lincoln Elementary School","suburban","52","California",94560,"Newark","Alameda","Newark Unified School District",37.504514,-122.032916 | ||
"0013a562a6af65ff472558d5ac6d462d","General Shafter Elementary School","urban","0","California",93313,"Bakersfield","Kern","General Shafter Elem Sch Dist",35.16319,-119.046322 | ||
"001f5cac2eff62e8a4ac8e70a72d010a","Abbott Middle School","suburban","41","California",94403,"San Mateo","San Mateo","San Mateo-Foster City Sch Dist",37.538449,-122.305447 | ||
"002775859958c4781d5b24aff76c3505","Canyon Oaks Elementary School","unknown","30","California",94503,"American Cyn","Napa","Napa Valley Unified Sch Dist",38.186532,-122.264069 | ||
"0033d3e34f8e6d753f897dc9e2e623a4","Rosemont Early Education Center","urban","75","California",90026,"Los Angeles","Los Angeles","Los Angeles Unif Sch Dist",34.080017,-118.262643 | ||
"00340a547d7fdfeca3052e846494c4f6","Diablo Vista Middle School","suburban","3","California",94506,"Danville","Contra Costa","San Ramon Valley Unified Sd",37.809677,-121.913141 | ||
"003994cc1cc1061b173d6fa566378f07","La Paloma High School","suburban","46","California",94513,"Brentwood","Contra Costa","Liberty Union High Sch Dist",37.922228,-121.668359 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
type School { | ||
id: ID! | ||
name: String! @search(by: [term]) | ||
type: String! @search(by: [hash]) | ||
projects: [Project] @hasInverse(field: "school") | ||
city: City | ||
geoloc: Point | ||
} | ||
|
||
type Project { | ||
id: ID! | ||
title: String! @search(by: [term]) | ||
grade: String @search(by: [hash]) | ||
category: Category | ||
school : School @hasInverse(field: "projects") | ||
donations : [Donation] @hasInverse(field: "project") | ||
} | ||
type Category { | ||
id: ID! | ||
name: String! | ||
} | ||
type Donation { | ||
id: ID! | ||
amount:Float | ||
donor: Donor @hasInverse(field: "donations") | ||
project: Project @hasInverse(field: "donations") | ||
} | ||
type Donor { | ||
id: ID! | ||
name: String! @search(by: [term]) | ||
donations: [Donation] @hasInverse(field: "donor") | ||
} | ||
type City { | ||
name: String! @id | ||
state: State | ||
} | ||
type State { | ||
name: String! @id | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
Category.name: string . | ||
City.name: string @index(hash) @upsert . | ||
Project.status: default . | ||
Project.id: default . | ||
typecity: default . | ||
typestate: default . | ||
School.projects: [uid] . | ||
School.geoloc: geo . | ||
Donation.donor: uid . | ||
Project.donations: [uid] . | ||
Donor.id: default . | ||
Project.category: uid . | ||
School.id: default . | ||
typedonor: default . | ||
Donor.geostate: uid . | ||
Donor.amount: float . | ||
typedonation: default . | ||
Donation.date: uid . | ||
typeproject: default . | ||
Project.title: string @index(term) . | ||
City.state: uid . | ||
Project.grade: string @index(hash) . | ||
School.city: uid . | ||
School.type: string @index(hash) . | ||
typeschool: default . | ||
Donation.project: uid . | ||
State.name: string @index(hash) @upsert . | ||
School.name: string @index(term) . | ||
typecategory: default . | ||
Donor.name: string @index(term) . | ||
Project.school: uid . | ||
Donor.donations: [uid] . | ||
Donation.amount: float . | ||
type School { | ||
School.city | ||
School.geoloc | ||
typeschool | ||
School.id | ||
School.name | ||
School.type | ||
School.projects | ||
} | ||
type State { | ||
State.name | ||
typestate | ||
} | ||
type Category { | ||
Category.name | ||
typecategory | ||
} | ||
type City { | ||
City.name | ||
City.state | ||
typecity | ||
} | ||
type Donation { | ||
Donation.amount | ||
typedonation | ||
Donation.date | ||
Donation.donor | ||
Donation.project | ||
} | ||
type Donor { | ||
Donor.id | ||
Donor.name | ||
Donor.donations | ||
typedonor | ||
Donor.geostate | ||
} | ||
type Project { | ||
Project.grade | ||
typeproject | ||
Project.id | ||
Project.status | ||
Project.category | ||
Project.school | ||
Project.donations | ||
Project.title | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,3 +42,4 @@ type City { | |
type State { | ||
name: String! @id | ||
} | ||
|
Git LFS file not shown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
|
||
|
||
type School { | ||
id: ID! | ||
name: String! @search(by: [term]) | ||
type: String! @search(by: [hash]) | ||
projects: [Project] @hasInverse(field: "school") | ||
city: City | ||
geoloc: Point | ||
} | ||
|
||
type Project { | ||
id: ID! | ||
title: String! @search(by: [term]) | ||
grade: String @search(by: [hash]) | ||
category: Category | ||
school : School @hasInverse(field: "projects") | ||
donations : [Donation] @hasInverse(field: "project") | ||
} | ||
type Category { | ||
id: ID! | ||
name: String! | ||
} | ||
type Donation { | ||
id: ID! | ||
amount:Float | ||
donor: Donor @hasInverse(field: "donations") | ||
project: Project @hasInverse(field: "donations") | ||
} | ||
type Donor { | ||
id: ID! | ||
amount:Float | ||
name: String! @search(by: [term]) | ||
donations: [Donation] @hasInverse(field: "donor") | ||
} | ||
type City { | ||
name: String! @id | ||
state: State | ||
} | ||
type State { | ||
name: String! @id | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
Category.name: string . | ||
City.name: string @index(hash) @upsert . | ||
City.state: uid . | ||
Donation.amount: float . | ||
Donation.donor: uid . | ||
Donation.project: uid . | ||
Donor.amount: float . | ||
Donor.donations: [uid] . | ||
Donor.name: string @index(term) . | ||
Project.category: uid . | ||
Project.donations: [uid] . | ||
Project.grade: string @index(hash) . | ||
Project.school: uid . | ||
Project.title: string @index(term) . | ||
School.city: uid . | ||
School.geoloc: geo . | ||
School.name: string @index(term) . | ||
School.projects: [uid] . | ||
School.type: string @index(hash) . | ||
State.name: string @index(hash) @upsert . | ||
|
||
type Category { | ||
Category.name | ||
} | ||
type City { | ||
City.name | ||
City.state | ||
} | ||
|
||
type Donation { | ||
Donation.amount | ||
Donation.donor | ||
Donation.project | ||
} | ||
type Donor { | ||
Donor.amount | ||
Donor.name | ||
Donor.donations | ||
} | ||
|
||
|
||
type Project { | ||
Project.title | ||
Project.grade | ||
Project.category | ||
Project.school | ||
Project.donations | ||
} | ||
type School { | ||
School.name | ||
School.type | ||
School.projects | ||
School.city | ||
School.geoloc | ||
} | ||
|
||
type State { | ||
State.name | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.csv filter=lfs diff=lfs merge=lfs -text |
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
Project.title: string @index(term) . | ||
Project.school: uid . | ||
typecity: default . | ||
State.name: string @index(hash) @upsert . | ||
Donor.name: string @index(term) . | ||
Project.id: default . | ||
typeproject: default . | ||
Donation.donor: uid . | ||
Project.donations: [uid] . | ||
Donation.date: uid . | ||
Category.name: string . | ||
School.name: string @index(term) . | ||
Donor.amount: float . | ||
Project.status: default . | ||
Donation.amount: float . | ||
Project.grade: string @index(hash) . | ||
School.city: uid . | ||
typecategory: default . | ||
typedonor: default . | ||
School.id: default . | ||
School.geoloc: geo . | ||
Project.category: uid . | ||
Donation.project: uid . | ||
City.name: string @index(hash) @upsert . | ||
City.state: uid . | ||
Donor.donations: [uid] . | ||
typedonation: default . | ||
School.projects: [uid] . | ||
Donor.id: default . | ||
typestate: default . | ||
typeschool: default . | ||
Donor.geostate: uid . | ||
School.type: string @index(hash) . | ||
type Category { | ||
typecategory | ||
Category.name | ||
} | ||
type City { | ||
City.state | ||
typecity | ||
City.name | ||
} | ||
type Donation { | ||
Donation.date | ||
Donation.donor | ||
Donation.project | ||
Donation.amount | ||
typedonation | ||
} | ||
type Donor { | ||
Donor.id | ||
Donor.name | ||
Donor.donations | ||
typedonor | ||
Donor.geostate | ||
} | ||
type Project { | ||
Project.donations | ||
Project.title | ||
Project.grade | ||
typeproject | ||
Project.id | ||
Project.status | ||
Project.category | ||
Project.school | ||
} | ||
type School { | ||
School.city | ||
School.geoloc | ||
typeschool | ||
School.id | ||
School.name | ||
School.type | ||
School.projects | ||
} | ||
type State { | ||
State.name | ||
typestate | ||
} |