-
Notifications
You must be signed in to change notification settings - Fork 0
/
sintaxisGDM.pug
53 lines (49 loc) · 1.06 KB
/
sintaxisGDM.pug
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
46
47
48
49
50
51
52
53
entity User {
id userId unique
text userName
text userEmail
text[*] areasOfExpertise
ref Review[*] postsReview
ref Artifact[*] likesArtifact
ref Venue[*] likesVenue
ref Review[*] likesReview
}
query Q1_artifactsByVenue:
select venue.venueName, venue.year
, artifacts.artifactId, artifacts.artifactTitle, artifacts.avgRating,
, artifacts.authors, artifacts.keywords
from Venue as venue
including venue.artifacts as artifacts
where venue.venueName = "?"
and venue.year > "?"
entity Artifact {
id artifactId unique
text[*] authors
number numRatings
number avgRating
number sumRatings
text artifactTitle
text[*] keywords
ref Review[*] ratesReview
ref Venue[1] venue
ref User[*] likesUser
}
entity Venue {
text venueName
number year
id venueId unique
text homepage
text country
text[*] topics
ref Artifact[*] featuresArtifact
ref User[*] likesUser
}
entity Review {
number rating
text body
text reviewTitle
id reviewId unique
ref Artifact[1] artifact
ref User[1] user
ref User[*] likesUser
}