Skip to content

Commit

Permalink
update reame and vignette for tibble changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sckott committed Oct 8, 2016
1 parent 978c220 commit 18591fd
Show file tree
Hide file tree
Showing 3 changed files with 156 additions and 171 deletions.
107 changes: 51 additions & 56 deletions README.md
Expand Up @@ -61,9 +61,9 @@ id("http://oai.datacite.org/oai")

```r
list_identifiers(from = '2011-05-01T', until = '2011-09-01T')
#> <ListRecords> 922 X 6
#>
#> # A tibble: 889 × 6
#> identifier datestamp setSpec setSpec.1
#> <chr> <chr> <chr> <chr>
#> 1 oai:oai.datacite.org:32153 2011-06-08T08:57:11Z TIB TIB.WDCC
#> 2 oai:oai.datacite.org:32200 2011-06-20T08:12:41Z TIB TIB.DAGST
#> 3 oai:oai.datacite.org:32220 2011-06-28T14:11:08Z TIB TIB.DAGST
Expand All @@ -74,8 +74,8 @@ list_identifiers(from = '2011-05-01T', until = '2011-09-01T')
#> 8 oai:oai.datacite.org:32310 2011-07-06T12:42:32Z TIB TIB.DAGST
#> 9 oai:oai.datacite.org:32325 2011-07-07T11:17:46Z TIB TIB.DAGST
#> 10 oai:oai.datacite.org:32326 2011-07-07T11:18:47Z TIB TIB.DAGST
#> .. ... ... ... ...
#> Variables not shown: setSpec.2 (chr), setSpec.3 (chr)
#> # ... with 879 more rows, and 2 more variables: setSpec.2 <chr>,
#> # setSpec.3 <chr>
```

## Count Identifiers
Expand All @@ -84,17 +84,17 @@ list_identifiers(from = '2011-05-01T', until = '2011-09-01T')
```r
count_identifiers()
#> url count
#> 1 http://oai.datacite.org/oai 7070730
#> 1 http://oai.datacite.org/oai 8333894
```

## ListRecords


```r
list_records(from = '2011-05-01T', until = '2011-08-15T')
#> <ListRecords> 124 X 44
#>
#> # A tibble: 109 × 44
#> identifier datestamp setSpec setSpec.1
#> <chr> <chr> <chr> <chr>
#> 1 oai:oai.datacite.org:32153 2011-06-08T08:57:11Z TIB TIB.WDCC
#> 2 oai:oai.datacite.org:32200 2011-06-20T08:12:41Z TIB TIB.DAGST
#> 3 oai:oai.datacite.org:32220 2011-06-28T14:11:08Z TIB TIB.DAGST
Expand All @@ -105,35 +105,35 @@ list_records(from = '2011-05-01T', until = '2011-08-15T')
#> 8 oai:oai.datacite.org:32310 2011-07-06T12:42:32Z TIB TIB.DAGST
#> 9 oai:oai.datacite.org:32325 2011-07-07T11:17:46Z TIB TIB.DAGST
#> 10 oai:oai.datacite.org:32326 2011-07-07T11:18:47Z TIB TIB.DAGST
#> .. ... ... ... ...
#> Variables not shown: title (chr), creator (chr), creator.1 (chr),
#> creator.2 (chr), creator.3 (chr), creator.4 (chr), creator.5 (chr),
#> creator.6 (chr), creator.7 (chr), publisher (chr), date (chr),
#> identifier.2 (chr), identifier.1 (chr), subject (chr), description
#> (chr), description.1 (chr), contributor (chr), language (chr), type
#> (chr), type.1 (chr), format (chr), format.1 (chr), rights (chr),
#> subject.1 (chr), relation (chr), subject.2 (chr), subject.3 (chr),
#> subject.4 (chr), setSpec.2 (chr), setSpec.3 (chr), format.2 (chr),
#> subject.5 (chr), subject.6 (chr), subject.7 (chr), description.2
#> (chr), description.3 (chr), description.4 (chr), description.5 (chr),
#> title.1 (chr), contributor.1 (chr)
#> # ... with 99 more rows, and 40 more variables: title <chr>,
#> # creator <chr>, creator.1 <chr>, creator.2 <chr>, creator.3 <chr>,
#> # creator.4 <chr>, creator.5 <chr>, creator.6 <chr>, creator.7 <chr>,
#> # publisher <chr>, date <chr>, identifier.2 <chr>, identifier.1 <chr>,
#> # subject <chr>, description <chr>, description.1 <chr>,
#> # contributor <chr>, language <chr>, type <chr>, type.1 <chr>,
#> # format <chr>, format.1 <chr>, rights <chr>, subject.1 <chr>,
#> # relation <chr>, subject.2 <chr>, subject.3 <chr>, subject.4 <chr>,
#> # setSpec.2 <chr>, setSpec.3 <chr>, format.2 <chr>, subject.5 <chr>,
#> # subject.6 <chr>, subject.7 <chr>, description.2 <chr>,
#> # description.3 <chr>, description.4 <chr>, description.5 <chr>,
#> # title.1 <chr>, contributor.1 <chr>
```

## GetRecords


```r
get_records(c("oai:oai.datacite.org:32255", "oai:oai.datacite.org:32325"))
#> <GetRecord> 2 X 23
#>
#> # A tibble: 2 × 23
#> identifier datestamp setSpec setSpec.1
#> <chr> <chr> <chr> <chr>
#> 1 oai:oai.datacite.org:32255 2011-07-01T12:09:24Z TIB TIB.DAGST
#> 2 oai:oai.datacite.org:32325 2011-07-07T11:17:46Z TIB TIB.DAGST
#> Variables not shown: title (chr), creator (chr), creator.1 (chr),
#> creator.2 (chr), creator.3 (chr), publisher (chr), date (chr),
#> identifier.1 (chr), subject (chr), subject.1 (chr), description
#> (chr), description.1 (chr), contributor (chr), language (chr), type
#> (chr), type.1 (chr), format (chr), format.1 (chr), rights (chr)
#> # ... with 19 more variables: title <chr>, creator <chr>, creator.1 <chr>,
#> # creator.2 <chr>, creator.3 <chr>, publisher <chr>, date <chr>,
#> # identifier.1 <chr>, subject <chr>, subject.1 <chr>, description <chr>,
#> # description.1 <chr>, contributor <chr>, language <chr>, type <chr>,
#> # type.1 <chr>, format <chr>, format.1 <chr>, rights <chr>
```

## List MetadataFormats
Expand Down Expand Up @@ -161,9 +161,9 @@ list_metadataformats(id = "oai:oai.datacite.org:32348")

```r
list_sets("http://oai.datacite.org/oai")
#> <ListSets> 1363 X 2
#>
#> # A tibble: 1,651 × 2
#> setSpec
#> <chr>
#> 1 REFQUALITY
#> 2 ANDS
#> 3 ANDS.REFQUALITY
Expand All @@ -174,8 +174,7 @@ list_sets("http://oai.datacite.org/oai")
#> 8 ANDS.CENTRE-3
#> 9 ANDS.CENTRE-3.REFQUALITY
#> 10 ANDS.CENTRE-5
#> .. ...
#> Variables not shown: setName (chr)
#> # ... with 1,641 more rows, and 1 more variables: setName <chr>
```

## Examples of other OAI providers
Expand All @@ -191,8 +190,8 @@ id("http://api.gbif.org/v1/oai-pmh/registry")
#> 1 GBIF Registry http://api.gbif.org/v1/oai-pmh/registry 2.0
#> adminEmail earliestDatestamp deletedRecord granularity
#> 1 dev@gbif.org 2007-01-01T00:00:01Z persistent YYYY-MM-DDThh:mm:ssZ
#> description
#> 1 \n\tGBIF Registry\n\tGlobal Biodiversity Information Facility Secretariat\n\t\n\t\tThe GBIF Registry — the entities that make up the GBIF network.\n\t\tThis OAI-PMH service exposes Datasets, organized into sets of country, installation and resource type.\n\t\tFor more information, see http://www.gbif.org/developer/registry\n\t\n
#> description
#> 1 GBIF RegistryGlobal Biodiversity Information Facility Secretariat\n\t\tThe GBIF Registry — the entities that make up the GBIF network.\n\t\tThis OAI-PMH service exposes Datasets, organized into sets of country, installation and resource type.\n\t\tFor more information, see http://www.gbif.org/developer/registry\n\t
```

Get records
Expand All @@ -201,18 +200,18 @@ Get records
```r
get_records(c("816f4734-6b49-41ab-8a1d-1b21e6b5486d", "95e3042f-f48d-4a04-8251-f755bebeced6"),
url = "http://api.gbif.org/v1/oai-pmh/registry")
#> <GetRecord> 2 X 29
#>
#> # A tibble: 2 × 28
#> identifier datestamp
#> <chr> <chr>
#> 1 816f4734-6b49-41ab-8a1d-1b21e6b5486d 2016-01-28T15:36:07Z
#> 2 95e3042f-f48d-4a04-8251-f755bebeced6 2016-01-24T23:01:17Z
#> Variables not shown: setSpec (chr), setSpec.1 (chr), setSpec.2 (chr),
#> title (chr), publisher (chr), identifier.1 (chr), source (chr),
#> description (chr), description.1 (chr), type (chr), language (chr),
#> format (chr), source.1 (chr), subject (chr), subject.1 (chr),
#> subject.2 (chr), subject.3 (chr), subject.4 (chr), subject.5 (chr),
#> description.2 (chr), creator (chr), creator.1 (chr), date (chr),
#> rights (chr), coverage (chr), coverage.1 (chr), coverage.2 (chr)
#> 2 95e3042f-f48d-4a04-8251-f755bebeced6 2016-08-30T13:43:31Z
#> # ... with 26 more variables: setSpec <chr>, setSpec.1 <chr>,
#> # setSpec.2 <chr>, title <chr>, publisher <chr>, identifier.1 <chr>,
#> # source <chr>, description <chr>, description.1 <chr>, type <chr>,
#> # language <chr>, format <chr>, source.1 <chr>, subject <chr>,
#> # subject.1 <chr>, subject.2 <chr>, subject.3 <chr>, subject.4 <chr>,
#> # subject.5 <chr>, description.2 <chr>, creator <chr>, creator.1 <chr>,
#> # date <chr>, coverage <chr>, coverage.1 <chr>, coverage.2 <chr>
```

### Biodiversity Heritage Library
Expand All @@ -228,8 +227,8 @@ id("http://www.biodiversitylibrary.org/oai")
#> 1 http://www.biodiversitylibrary.org/oai 2.0
#> adminEmail earliestDatestamp deletedRecord granularity
#> 1 oai@biodiversitylibrary.org 2006-01-01 no YYYY-MM-DD
#> description
#> 1 \n\t\t\n\t\t\toai\n\t\t\tbiodiversitylibrary.org\n\t\t\t:\n\t\t\toai:biodiversitylibrary.org:item/1000\n\t\t\n\t
#> description
#> 1 oaibiodiversitylibrary.org:oai:biodiversitylibrary.org:item/1000
```

Get records
Expand All @@ -238,19 +237,15 @@ Get records
```r
get_records(c("oai:biodiversitylibrary.org:item/7", "oai:biodiversitylibrary.org:item/9"),
url = "http://www.biodiversitylibrary.org/oai")
#> <GetRecord> 2 X 32
#>
#> # A tibble: 2 × 17
#> identifier datestamp setSpec
#> 1 oai:biodiversitylibrary.org:item/7 2016-01-26T05:05:20Z item
#> 2 oai:biodiversitylibrary.org:item/9 2016-01-26T05:05:20Z item
#> Variables not shown: title (chr), creator (chr), creator.1 (chr),
#> creator.2 (chr), subject (chr), subject.1 (chr), subject.2 (chr),
#> subject.3 (chr), subject.4 (chr), subject.5 (chr), subject.6 (chr),
#> subject.7 (chr), subject.8 (chr), subject.9 (chr), subject.10 (chr),
#> subject.11 (chr), subject.12 (chr), subject.13 (chr), subject.14
#> (chr), subject.15 (chr), description (chr), publisher (chr),
#> contributor (chr), date (chr), type (chr), type.1 (chr), identifier.1
#> (chr), language (chr), rights (chr)
#> <chr> <chr> <chr>
#> 1 oai:biodiversitylibrary.org:item/7 2016-07-13T08:13:41Z item
#> 2 oai:biodiversitylibrary.org:item/9 2016-07-13T08:13:41Z item
#> # ... with 14 more variables: title <chr>, creator <chr>, subject <chr>,
#> # subject.1 <chr>, subject.2 <chr>, description <chr>, publisher <chr>,
#> # contributor <chr>, date <chr>, type <chr>, type.1 <chr>,
#> # identifier.1 <chr>, language <chr>, rights <chr>
```


Expand Down

0 comments on commit 18591fd

Please sign in to comment.