hollywood_social_network_analysis
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
hollywood_social_network_analysis [2019/09/15 13:24] – hkimscil | hollywood_social_network_analysis [2019/12/11 07:56] – 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: | ||
- | FILTER(DATATYPE(? | + | # error here |
+ | # | ||
+ | # | ||
+ | | ||
?m dbp: | ?m dbp: | ||
?a rdfs:label ?actor . | ?a rdfs:label ?actor . | ||
Line 51: | Line 55: | ||
| | ||
- | Sys.setenv(TZ = " | ||
res <- SPARQL(endpoint, | res <- SPARQL(endpoint, | ||
+ | head(res) | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | | ||
+ | 1 "Pat O' | ||
+ | 2 " | ||
+ | 3 " | ||
+ | 4 "Kevin Gage (actor)" | ||
+ | 5 " | ||
+ | 6 "Rex Harrison" | ||
+ | | ||
+ | 1 -1203379200 | ||
+ | 2 -1580083200 | ||
+ | 3 1005609600 | ||
+ | 4 1005609600 | ||
+ | 5 -1257724800 | ||
+ | 6 | ||
+ | |||
+ | </ | ||
+ | |||
+ | < | ||
+ | head(res) | ||
+ | </ | ||
- | res</ | ||
< | < | ||
- | # output: | + | > head(res) |
- | # actor movie director | + | |
- | # 1 "Harland Williams"@en "Big Money Hustlas"@en "John Cafiero" | + | 1 "Pat O' |
- | # 2 | + | 2 |
- | # 3 | + | 3 |
- | # 4 "Joseph Utsler"@en "Big Money Hustlas"@en "John Cafiero" | + | 4 "Kevin Gage (actor)" |
- | # 5 | + | 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