hollywood_social_network_analysis
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
hollywood_social_network_analysis [2019/09/15 13:25] – hkimscil | hollywood_social_network_analysis [2019/12/11 07:57] – hkimscil | ||
---|---|---|---|
Line 10: | Line 10: | ||
Define the endpoint that will provide you with the triples by | Define the endpoint that will provide you with the triples by | ||
- | < | + | < |
- | State that there are no further options to send to the SPARQL server. These options are sent as HTTP parameters and differ per end point. For example, Jena Fuseki can take the option " | + | |
+ | State that there are no further options to send to the SPARQL server. These options are sent as HTTP parameters and differ per end point. For example, Jena Fuseki can take the option " | ||
< | < | ||
Line 42: | Line 43: | ||
| | ||
?m dbp: | ?m dbp: | ||
- | | + | |
?m dbp: | ?m dbp: | ||
?a rdfs:label ?actor . | ?a rdfs:label ?actor . | ||
Line 51: | Line 52: | ||
| | ||
- | Sys.setenv(TZ = " | ||
res <- SPARQL(endpoint, | res <- SPARQL(endpoint, | ||
+ | head(res) | ||
+ | </ | ||
- | res</code> | + | < |
- | <code> | + | |
- | # output: | + | 1 "Pat O' |
- | # actor movie director | + | 2 |
- | # 1 "Harland Williams"@en "Big Money Hustlas"@en "John Cafiero" | + | 3 |
- | # 2 | + | 4 "Kevin Gage (actor)" |
- | # 3 | + | 5 |
- | # 4 "Joseph Utsler"@en "Big Money Hustlas"@en "John Cafiero" | + | 6 "Rex Harrison" |
- | # 5 | + | movie_date |
- | # ...</ | + | 1 -1203379200 |
+ | 2 -1580083200 | ||
+ | 3 1005609600 | ||
+ | 4 1005609600 | ||
+ | 5 -1257724800 | ||
+ | 6 | ||
+ | </ | ||
< | < | ||
+ | head(res) | ||
</ | </ | ||
- | < | + | < |
- | # actor movie director | + | > head(res) |
- | # 1 "Harland Williams"@en "Big Money Hustlas"@en "John Cafiero" | + | actor movie |
- | # 2 | + | 1 "Pat O' |
- | # 3 | + | 2 |
- | # 4 "Joseph Utsler"@en "Big Money Hustlas"@en "John Cafiero" | + | 3 |
- | # 5 | + | 4 "Kevin Gage (actor)" |
- | # ... | + | 5 |
+ | 6 "Rex Harrison" | ||
+ | movie_date | ||
+ | 1 1931-11-14 | ||
+ | 2 1919-12-07 | ||
+ | 3 2001-11-13 | ||
+ | 4 2001-11-13 | ||
+ | 5 1930-02-23 | ||
+ | 6 1967-12-12 | ||
+ | > | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | # write the data somewhere else | ||
+ | write.csv(res, file=" | ||
+ | getwd() | ||
</ | </ | ||
hollywood_social_network_analysis.txt · Last modified: 2019/12/11 08:09 by hkimscil