Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc9a4788

Browse files
committed
documentation update
1 parentcbd7eb8 commitc9a4788

File tree

5 files changed

+27
-26
lines changed

5 files changed

+27
-26
lines changed

‎README.Rmd‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ con$get_constraints()
9393
con$get_labels()
9494
# Get a vector of relationships (if any)
9595
con$get_relationships()
96-
# Getschema
97-
con$get_schema()
96+
# Getindex
97+
con$get_index()
9898
```
9999

100100
###Using the Connection Pane

‎README.md‎

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -88,28 +88,29 @@ con$get_version()
8888
# List constaints (if any)
8989
con$get_constraints()
9090
#> label type property_keys
91-
#> 1:artist UNIQUENESS name
92-
#> 2:Maintainer UNIQUENESS name
93-
#> 3: Band UNIQUENESS name
91+
#> 1: Band UNIQUENESS name
92+
#> 2: record UNIQUENESS name
93+
#> 3:Author UNIQUENESS name
9494
#> 4: City UNIQUENESS name
95-
#> 5:record UNIQUENESS name
95+
#> 5:artist UNIQUENESS name
9696
#> 6: Package UNIQUENESS name
97-
#> 7: Author UNIQUENESS name
97+
#> 7:Maintainer UNIQUENESS name
9898
# Get a vector of labels (if any)
9999
con$get_labels()
100-
#> # A tibble:10 x 1
100+
#> # A tibble:11 x 1
101101
#> labels
102102
#> <chr>
103-
#> 1City
104-
#> 2Band
105-
#> 3record
106-
#> 4Author
107-
#> 5Person
108-
#> 6Maintainer
103+
#> 1artist
104+
#> 2Package
105+
#> 3Person
106+
#> 4record
107+
#> 5Band
108+
#> 6City
109109
#> 7 album
110-
#> 8 Package
111-
#> 9 Movie
112-
#> 10 artist
110+
#> 8 Maintainer
111+
#> 9 Author
112+
#> 10 Movie
113+
#> 11 Character
113114
# Get a vector of relationships (if any)
114115
con$get_relationships()
115116
#> # A tibble: 10 x 1
@@ -125,8 +126,8 @@ con$get_relationships()
125126
#> 8 WROTE
126127
#> 9 FOLLOWS
127128
#> 10 REVIEWED
128-
# Getschema
129-
con$get_schema()
129+
# Getindex
130+
con$get_index()
130131
#> label property_keys
131132
#> 1: Band name
132133
#> 2: Author name
@@ -733,13 +734,13 @@ call_neo4j("CREATE CONSTRAINT ON (al:album) ASSERT al.name IS UNIQUE;", con)
733734
# List constaints (if any)
734735
con$get_constraints()
735736
#> label type property_keys
736-
#> 1:artist UNIQUENESS name
737-
#> 2:Maintainer UNIQUENESS name
738-
#> 3: Band UNIQUENESS name
737+
#> 1: Band UNIQUENESS name
738+
#> 2: record UNIQUENESS name
739+
#> 3:Author UNIQUENESS name
739740
#> 4: City UNIQUENESS name
740-
#> 5:record UNIQUENESS name
741+
#> 5:artist UNIQUENESS name
741742
#> 6: Package UNIQUENESS name
742-
#> 7: Author UNIQUENESS name
743+
#> 7:Maintainer UNIQUENESS name
743744
# Create the query that will create the nodes and relationships
744745
on_load_query<-'MERGE (a:artist { name: csvLine.artist})
745746
MERGE (al:album {name: csvLine.album_name})

‎inst/tests/testthat/test-connection.R‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ test_that("connection object", {
1414
expect_equal(names(con$get_property_keys()), c("labels"))
1515
expect_equal(ncol(con$get_relationships()),1)
1616
expect_equal(names(con$get_relationships()), c("labels"))
17-
expect_equal(ncol(con$get_schema()),2)
18-
expect_equal(names(con$get_schema()), c("label","property_keys"))
17+
expect_equal(ncol(con$get_index()),2)
18+
expect_equal(names(con$get_index()), c("label","property_keys"))
1919
expect_is(con$get_version(),"character")
2020
})
1.78 KB
Loading
-1.5 KB
Loading

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp