publisci 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.document +5 -0
- data/.rspec +1 -0
- data/.travis.yml +13 -0
- data/Gemfile +36 -0
- data/LICENSE.txt +20 -0
- data/README.md +51 -0
- data/README.rdoc +48 -0
- data/Rakefile +68 -0
- data/bin/bio-publisci +106 -0
- data/bin/bio-publisci-server +50 -0
- data/examples/bio-band_integration.rb +9 -0
- data/examples/no_magic.prov +58 -0
- data/examples/no_magic.rb +58 -0
- data/examples/orm.prov +48 -0
- data/examples/primer-full.prov +120 -0
- data/examples/primer.prov +66 -0
- data/examples/prov_dsl.prov +85 -0
- data/examples/safe_gen.rb +7 -0
- data/examples/visualization/primer.prov +66 -0
- data/examples/visualization/prov_viz.rb +140 -0
- data/examples/visualization/viz.rb +35 -0
- data/features/create_generator.feature +21 -0
- data/features/integration.feature +12 -0
- data/features/integration_steps.rb +10 -0
- data/features/metadata.feature +37 -0
- data/features/metadata_steps.rb +40 -0
- data/features/orm.feature +60 -0
- data/features/orm_steps.rb +74 -0
- data/features/prov_dsl.feature +14 -0
- data/features/prov_dsl_steps.rb +11 -0
- data/features/reader.feature +25 -0
- data/features/reader_steps.rb +61 -0
- data/features/step_definitions/bio-publisci_steps.rb +0 -0
- data/features/store.feature +27 -0
- data/features/store_steps.rb +42 -0
- data/features/support/env.rb +13 -0
- data/features/writer.feature +14 -0
- data/features/writer_steps.rb +24 -0
- data/lib/bio-publisci.rb +64 -0
- data/lib/bio-publisci/analyzer.rb +57 -0
- data/lib/bio-publisci/datacube_model.rb +111 -0
- data/lib/bio-publisci/dataset/ORM/data_cube_orm.rb +240 -0
- data/lib/bio-publisci/dataset/ORM/observation.rb +20 -0
- data/lib/bio-publisci/dataset/configuration.rb +31 -0
- data/lib/bio-publisci/dataset/data_cube.rb +418 -0
- data/lib/bio-publisci/dataset/dataset.rb +11 -0
- data/lib/bio-publisci/dataset/dataset_for.rb +186 -0
- data/lib/bio-publisci/dataset/interactive.rb +72 -0
- data/lib/bio-publisci/dsl/config.rb +34 -0
- data/lib/bio-publisci/dsl/dataset_dsl.rb +93 -0
- data/lib/bio-publisci/dsl/dsl.rb +72 -0
- data/lib/bio-publisci/dsl/metadata_dsl.rb +85 -0
- data/lib/bio-publisci/dsl/prov_dsl.rb +143 -0
- data/lib/bio-publisci/metadata/generator.rb +323 -0
- data/lib/bio-publisci/metadata/metadata.rb +5 -0
- data/lib/bio-publisci/metadata/metadata_model.rb +25 -0
- data/lib/bio-publisci/metadata/prov/activity.rb +88 -0
- data/lib/bio-publisci/metadata/prov/agent.rb +100 -0
- data/lib/bio-publisci/metadata/prov/association.rb +107 -0
- data/lib/bio-publisci/metadata/prov/config.rb +34 -0
- data/lib/bio-publisci/metadata/prov/derivation.rb +60 -0
- data/lib/bio-publisci/metadata/prov/element.rb +120 -0
- data/lib/bio-publisci/metadata/prov/entity.rb +64 -0
- data/lib/bio-publisci/metadata/prov/model/prov_models.rb +109 -0
- data/lib/bio-publisci/metadata/prov/plan.rb +32 -0
- data/lib/bio-publisci/metadata/prov/prov.rb +78 -0
- data/lib/bio-publisci/metadata/prov/role.rb +40 -0
- data/lib/bio-publisci/metadata/prov/usage.rb +64 -0
- data/lib/bio-publisci/metadata/publisher.rb +25 -0
- data/lib/bio-publisci/mixins/custom_predicate.rb +38 -0
- data/lib/bio-publisci/mixins/dereferencable.rb +34 -0
- data/lib/bio-publisci/mixins/registry.rb +27 -0
- data/lib/bio-publisci/mixins/vocabulary.rb +8 -0
- data/lib/bio-publisci/output.rb +27 -0
- data/lib/bio-publisci/parser.rb +266 -0
- data/lib/bio-publisci/post_processor.rb +95 -0
- data/lib/bio-publisci/query/query_helper.rb +123 -0
- data/lib/bio-publisci/r_client.rb +54 -0
- data/lib/bio-publisci/readers/arff.rb +49 -0
- data/lib/bio-publisci/readers/base.rb +57 -0
- data/lib/bio-publisci/readers/csv.rb +88 -0
- data/lib/bio-publisci/readers/dataframe.rb +67 -0
- data/lib/bio-publisci/readers/maf.rb +199 -0
- data/lib/bio-publisci/readers/r_cross.rb +112 -0
- data/lib/bio-publisci/readers/r_matrix.rb +176 -0
- data/lib/bio-publisci/store.rb +56 -0
- data/lib/bio-publisci/writers/arff.rb +91 -0
- data/lib/bio-publisci/writers/base.rb +93 -0
- data/lib/bio-publisci/writers/csv.rb +31 -0
- data/lib/bio-publisci/writers/dataframe.rb +81 -0
- data/lib/bio-publisci/writers/json.rb +18 -0
- data/lib/r2rdf.rb +226 -0
- data/lib/template_bak.rb +12 -0
- data/lib/template_bak/publisci.rb +3 -0
- data/lib/vocabs/cc.rb +18 -0
- data/lib/vocabs/cert.rb +13 -0
- data/lib/vocabs/dc.rb +63 -0
- data/lib/vocabs/dc11.rb +23 -0
- data/lib/vocabs/doap.rb +45 -0
- data/lib/vocabs/exif.rb +168 -0
- data/lib/vocabs/foaf.rb +69 -0
- data/lib/vocabs/geo.rb +13 -0
- data/lib/vocabs/http.rb +26 -0
- data/lib/vocabs/ma.rb +78 -0
- data/lib/vocabs/owl.rb +59 -0
- data/lib/vocabs/rdfs.rb +17 -0
- data/lib/vocabs/rsa.rb +12 -0
- data/lib/vocabs/rss.rb +14 -0
- data/lib/vocabs/sioc.rb +93 -0
- data/lib/vocabs/skos.rb +36 -0
- data/lib/vocabs/wot.rb +21 -0
- data/lib/vocabs/xhtml.rb +9 -0
- data/lib/vocabs/xsd.rb +58 -0
- data/resources/maf_example.maf +10 -0
- data/resources/maf_rdf.ttl +1173 -0
- data/resources/primer.ttl +38 -0
- data/resources/queries/code_resources.rq +10 -0
- data/resources/queries/codes.rq +18 -0
- data/resources/queries/dataset.rq +7 -0
- data/resources/queries/dimension_ranges.rq +8 -0
- data/resources/queries/dimensions.rq +12 -0
- data/resources/queries/gene.rq +16 -0
- data/resources/queries/hugo_to_ensembl.rq +7 -0
- data/resources/queries/maf_column.rq +26 -0
- data/resources/queries/measures.rq +12 -0
- data/resources/queries/observation_labels.rq +8 -0
- data/resources/queries/observations.rq +13 -0
- data/resources/queries/patient.rq +11 -0
- data/resources/queries/patient_list.rq +11 -0
- data/resources/queries/patients_with_mutation.rq +18 -0
- data/resources/queries/properties.rq +8 -0
- data/resources/queries/test.rq +3 -0
- data/resources/weather.numeric.arff +28 -0
- data/scripts/get_gene_lengths.rb +50 -0
- data/scripts/islet_mlratio.rb +6 -0
- data/scripts/scan_islet.rb +6 -0
- data/scripts/update_reference.rb +25 -0
- data/server/helpers.rb +215 -0
- data/server/public/src-min-noconflict/LICENSE +24 -0
- data/server/public/src-min-noconflict/ace.js +11 -0
- data/server/public/src-min-noconflict/ext-chromevox.js +1 -0
- data/server/public/src-min-noconflict/ext-elastic_tabstops_lite.js +1 -0
- data/server/public/src-min-noconflict/ext-emmet.js +1 -0
- data/server/public/src-min-noconflict/ext-keybinding_menu.js +1 -0
- data/server/public/src-min-noconflict/ext-language_tools.js +1 -0
- data/server/public/src-min-noconflict/ext-modelist.js +1 -0
- data/server/public/src-min-noconflict/ext-old_ie.js +1 -0
- data/server/public/src-min-noconflict/ext-searchbox.js +1 -0
- data/server/public/src-min-noconflict/ext-settings_menu.js +1 -0
- data/server/public/src-min-noconflict/ext-spellcheck.js +1 -0
- data/server/public/src-min-noconflict/ext-split.js +1 -0
- data/server/public/src-min-noconflict/ext-static_highlight.js +1 -0
- data/server/public/src-min-noconflict/ext-statusbar.js +1 -0
- data/server/public/src-min-noconflict/ext-textarea.js +1 -0
- data/server/public/src-min-noconflict/ext-themelist.js +1 -0
- data/server/public/src-min-noconflict/ext-whitespace.js +1 -0
- data/server/public/src-min-noconflict/keybinding-emacs.js +1 -0
- data/server/public/src-min-noconflict/keybinding-vim.js +1 -0
- data/server/public/src-min-noconflict/mode-ruby.js +1 -0
- data/server/public/src-min-noconflict/snippets/ruby.js +1 -0
- data/server/public/src-min-noconflict/theme-twilight.js +1 -0
- data/server/public/src-min-noconflict/worker-coffee.js +1 -0
- data/server/public/src-min-noconflict/worker-css.js +1 -0
- data/server/public/src-min-noconflict/worker-javascript.js +1 -0
- data/server/public/src-min-noconflict/worker-json.js +1 -0
- data/server/public/src-min-noconflict/worker-lua.js +1 -0
- data/server/public/src-min-noconflict/worker-php.js +1 -0
- data/server/public/src-min-noconflict/worker-xquery.js +1 -0
- data/server/routes.rb +123 -0
- data/server/views/dsl.haml +65 -0
- data/server/views/dump.haml +3 -0
- data/server/views/import.haml +35 -0
- data/server/views/new_repository.haml +25 -0
- data/server/views/query.haml +28 -0
- data/server/views/repository.haml +25 -0
- data/spec/ORM/data_cube_orm_spec.rb +33 -0
- data/spec/ORM/prov_model_spec.rb +72 -0
- data/spec/analyzer_spec.rb +36 -0
- data/spec/bnode_spec.rb +66 -0
- data/spec/csv/bacon.csv +4 -0
- data/spec/csv/moar_bacon.csv +11 -0
- data/spec/data_cube_spec.rb +169 -0
- data/spec/dataset_for_spec.rb +77 -0
- data/spec/dsl_spec.rb +134 -0
- data/spec/generators/csv_spec.rb +44 -0
- data/spec/generators/dataframe_spec.rb +44 -0
- data/spec/generators/maf_spec.rb +40 -0
- data/spec/generators/r_cross_spec.rb +51 -0
- data/spec/generators/r_matrix_spec.rb +44 -0
- data/spec/length_lookup_spec.rb +0 -0
- data/spec/maf_query_spec.rb +343 -0
- data/spec/metadata/metadata_dsl_spec.rb +68 -0
- data/spec/prov/activity_spec.rb +74 -0
- data/spec/prov/agent_spec.rb +54 -0
- data/spec/prov/association_spec.rb +55 -0
- data/spec/prov/config_spec.rb +28 -0
- data/spec/prov/derivation_spec.rb +30 -0
- data/spec/prov/entity_spec.rb +52 -0
- data/spec/prov/role_spec.rb +94 -0
- data/spec/prov/usage_spec.rb +98 -0
- data/spec/queries/integrity/1.rq +21 -0
- data/spec/queries/integrity/11.rq +29 -0
- data/spec/queries/integrity/12.rq +37 -0
- data/spec/queries/integrity/14.rq +25 -0
- data/spec/queries/integrity/19_1.rq +21 -0
- data/spec/queries/integrity/19_2.rq +15 -0
- data/spec/queries/integrity/2.rq +22 -0
- data/spec/queries/integrity/3.rq +19 -0
- data/spec/queries/integrity/4.rq +13 -0
- data/spec/queries/integrity/5.rq +14 -0
- data/spec/r_builder_spec.rb +33 -0
- data/spec/resource/.RData +0 -0
- data/spec/resource/example.Rhistory +3 -0
- data/spec/spec_helper.rb +17 -0
- data/spec/turtle/bacon +147 -0
- data/spec/turtle/reference +2064 -0
- data/spec/turtle/weather +275 -0
- data/spec/writer_spec.rb +75 -0
- metadata +589 -0
data/spec/turtle/weather
ADDED
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
@base <http://onto.strinz.me/dc/dataset/weather/> .
|
|
2
|
+
@prefix ns: <http://onto.strinz.me/dc/dataset/weather/> .
|
|
3
|
+
@prefix qb: <http://purl.org/linked-data/cube#> .
|
|
4
|
+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
|
5
|
+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
|
6
|
+
@prefix prop: <http://onto.strinz.me/properties/> .
|
|
7
|
+
@prefix dct: <http://purl.org/dc/terms/> .
|
|
8
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
9
|
+
@prefix cs: <http://onto.strinz.me/dc/dataset/weather/cs/> .
|
|
10
|
+
@prefix code: <http://onto.strinz.me/dc/dataset/weather/code/> .
|
|
11
|
+
@prefix owl: <http://www.w3.org/2002/07/owl#> .
|
|
12
|
+
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
|
|
13
|
+
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
|
|
14
|
+
@prefix org: <http://www.w3.org/ns/org#> .
|
|
15
|
+
@prefix prov: <http://www.w3.org/ns/prov#> .
|
|
16
|
+
|
|
17
|
+
ns:dsd-weather a qb:DataStructureDefinition;
|
|
18
|
+
qb:component cs:outlook ;
|
|
19
|
+
qb:component cs:play ;
|
|
20
|
+
qb:component cs:windy ;
|
|
21
|
+
qb:component cs:humidity ;
|
|
22
|
+
qb:component cs:temperature .
|
|
23
|
+
|
|
24
|
+
ns:dataset-weather a qb:DataSet ;
|
|
25
|
+
rdfs:label "weather"@en ;
|
|
26
|
+
qb:structure ns:dsd-weather .
|
|
27
|
+
|
|
28
|
+
cs:outlook a qb:ComponentSpecification ;
|
|
29
|
+
rdfs:label "outlook" ;
|
|
30
|
+
qb:dimension prop:outlook .
|
|
31
|
+
|
|
32
|
+
cs:play a qb:ComponentSpecification ;
|
|
33
|
+
rdfs:label "play" ;
|
|
34
|
+
qb:dimension prop:play .
|
|
35
|
+
|
|
36
|
+
cs:windy a qb:ComponentSpecification ;
|
|
37
|
+
rdfs:label "windy" ;
|
|
38
|
+
qb:dimension prop:windy .
|
|
39
|
+
|
|
40
|
+
cs:humidity a qb:ComponentSpecification ;
|
|
41
|
+
rdfs:label "humidity" ;
|
|
42
|
+
qb:measure prop:humidity .
|
|
43
|
+
|
|
44
|
+
cs:temperature a qb:ComponentSpecification ;
|
|
45
|
+
rdfs:label "temperature" ;
|
|
46
|
+
qb:measure prop:temperature .
|
|
47
|
+
|
|
48
|
+
prop:outlook a rdf:Property, qb:DimensionProperty ;
|
|
49
|
+
rdfs:label "outlook"@en ;
|
|
50
|
+
qb:codeList code:outlook ;
|
|
51
|
+
rdfs:range code:Outlook .
|
|
52
|
+
|
|
53
|
+
prop:play a rdf:Property, qb:DimensionProperty ;
|
|
54
|
+
rdfs:label "play"@en ;
|
|
55
|
+
qb:codeList code:play ;
|
|
56
|
+
rdfs:range code:Play .
|
|
57
|
+
|
|
58
|
+
prop:windy a rdf:Property, qb:DimensionProperty ;
|
|
59
|
+
rdfs:label "windy"@en ;
|
|
60
|
+
qb:codeList code:windy ;
|
|
61
|
+
rdfs:range code:Windy .
|
|
62
|
+
|
|
63
|
+
prop:humidity a rdf:Property, qb:MeasureProperty ;
|
|
64
|
+
rdfs:label "humidity"@en .
|
|
65
|
+
|
|
66
|
+
prop:temperature a rdf:Property, qb:MeasureProperty ;
|
|
67
|
+
rdfs:label "temperature"@en .
|
|
68
|
+
|
|
69
|
+
code:Outlook a rdfs:Class, owl:Class;
|
|
70
|
+
rdfs:subClassOf skos:Concept ;
|
|
71
|
+
rdfs:label "Code list for outlook - codelist class"@en;
|
|
72
|
+
rdfs:comment "Specifies the outlook for each observation";
|
|
73
|
+
rdfs:seeAlso code:outlook .
|
|
74
|
+
|
|
75
|
+
code:outlook a skos:ConceptScheme;
|
|
76
|
+
skos:prefLabel "Code list for outlook - codelist scheme"@en;
|
|
77
|
+
rdfs:label "Code list for outlook - codelist scheme"@en;
|
|
78
|
+
skos:notation "CL_OUTLOOK";
|
|
79
|
+
skos:note "Specifies the outlook for each observation";
|
|
80
|
+
skos:hasTopConcept <code/outlook/sunny> ;
|
|
81
|
+
skos:hasTopConcept <code/outlook/overcast> ;
|
|
82
|
+
skos:hasTopConcept <code/outlook/rainy> ;
|
|
83
|
+
.
|
|
84
|
+
|
|
85
|
+
code:Play a rdfs:Class, owl:Class;
|
|
86
|
+
rdfs:subClassOf skos:Concept ;
|
|
87
|
+
rdfs:label "Code list for play - codelist class"@en;
|
|
88
|
+
rdfs:comment "Specifies the play for each observation";
|
|
89
|
+
rdfs:seeAlso code:play .
|
|
90
|
+
|
|
91
|
+
code:play a skos:ConceptScheme;
|
|
92
|
+
skos:prefLabel "Code list for play - codelist scheme"@en;
|
|
93
|
+
rdfs:label "Code list for play - codelist scheme"@en;
|
|
94
|
+
skos:notation "CL_PLAY";
|
|
95
|
+
skos:note "Specifies the play for each observation";
|
|
96
|
+
skos:hasTopConcept <code/play/no> ;
|
|
97
|
+
skos:hasTopConcept <code/play/yes> ;
|
|
98
|
+
.
|
|
99
|
+
|
|
100
|
+
code:Windy a rdfs:Class, owl:Class;
|
|
101
|
+
rdfs:subClassOf skos:Concept ;
|
|
102
|
+
rdfs:label "Code list for windy - codelist class"@en;
|
|
103
|
+
rdfs:comment "Specifies the windy for each observation";
|
|
104
|
+
rdfs:seeAlso code:windy .
|
|
105
|
+
|
|
106
|
+
code:windy a skos:ConceptScheme;
|
|
107
|
+
skos:prefLabel "Code list for windy - codelist scheme"@en;
|
|
108
|
+
rdfs:label "Code list for windy - codelist scheme"@en;
|
|
109
|
+
skos:notation "CL_WINDY";
|
|
110
|
+
skos:note "Specifies the windy for each observation";
|
|
111
|
+
skos:hasTopConcept <code/windy/FALSE> ;
|
|
112
|
+
skos:hasTopConcept <code/windy/TRUE> ;
|
|
113
|
+
.
|
|
114
|
+
|
|
115
|
+
<code/outlook/sunny> a skos:Concept, code:Outlook;
|
|
116
|
+
skos:topConceptOf code:outlook ;
|
|
117
|
+
skos:prefLabel "sunny" ;
|
|
118
|
+
skos:inScheme code:outlook .
|
|
119
|
+
|
|
120
|
+
<code/outlook/overcast> a skos:Concept, code:Outlook;
|
|
121
|
+
skos:topConceptOf code:outlook ;
|
|
122
|
+
skos:prefLabel "overcast" ;
|
|
123
|
+
skos:inScheme code:outlook .
|
|
124
|
+
|
|
125
|
+
<code/outlook/rainy> a skos:Concept, code:Outlook;
|
|
126
|
+
skos:topConceptOf code:outlook ;
|
|
127
|
+
skos:prefLabel "rainy" ;
|
|
128
|
+
skos:inScheme code:outlook .
|
|
129
|
+
|
|
130
|
+
<code/play/no> a skos:Concept, code:Play;
|
|
131
|
+
skos:topConceptOf code:play ;
|
|
132
|
+
skos:prefLabel "no" ;
|
|
133
|
+
skos:inScheme code:play .
|
|
134
|
+
|
|
135
|
+
<code/play/yes> a skos:Concept, code:Play;
|
|
136
|
+
skos:topConceptOf code:play ;
|
|
137
|
+
skos:prefLabel "yes" ;
|
|
138
|
+
skos:inScheme code:play .
|
|
139
|
+
|
|
140
|
+
<code/windy/FALSE> a skos:Concept, code:Windy;
|
|
141
|
+
skos:topConceptOf code:windy ;
|
|
142
|
+
skos:prefLabel "FALSE" ;
|
|
143
|
+
skos:inScheme code:windy .
|
|
144
|
+
|
|
145
|
+
<code/windy/TRUE> a skos:Concept, code:Windy;
|
|
146
|
+
skos:topConceptOf code:windy ;
|
|
147
|
+
skos:prefLabel "TRUE" ;
|
|
148
|
+
skos:inScheme code:windy .
|
|
149
|
+
|
|
150
|
+
ns:obs1 a qb:Observation ;
|
|
151
|
+
qb:dataSet ns:dataset-weather ;
|
|
152
|
+
prop:outlook <code/outlook/sunny> ;
|
|
153
|
+
prop:play <code/play/no> ;
|
|
154
|
+
prop:windy <code/windy/FALSE> ;
|
|
155
|
+
prop:humidity 85 ;
|
|
156
|
+
prop:temperature 85 ;
|
|
157
|
+
.
|
|
158
|
+
|
|
159
|
+
ns:obs2 a qb:Observation ;
|
|
160
|
+
qb:dataSet ns:dataset-weather ;
|
|
161
|
+
prop:outlook <code/outlook/sunny> ;
|
|
162
|
+
prop:play <code/play/no> ;
|
|
163
|
+
prop:windy <code/windy/TRUE> ;
|
|
164
|
+
prop:humidity 90 ;
|
|
165
|
+
prop:temperature 80 ;
|
|
166
|
+
.
|
|
167
|
+
|
|
168
|
+
ns:obs3 a qb:Observation ;
|
|
169
|
+
qb:dataSet ns:dataset-weather ;
|
|
170
|
+
prop:outlook <code/outlook/overcast> ;
|
|
171
|
+
prop:play <code/play/yes> ;
|
|
172
|
+
prop:windy <code/windy/FALSE> ;
|
|
173
|
+
prop:humidity 86 ;
|
|
174
|
+
prop:temperature 83 ;
|
|
175
|
+
.
|
|
176
|
+
|
|
177
|
+
ns:obs4 a qb:Observation ;
|
|
178
|
+
qb:dataSet ns:dataset-weather ;
|
|
179
|
+
prop:outlook <code/outlook/rainy> ;
|
|
180
|
+
prop:play <code/play/yes> ;
|
|
181
|
+
prop:windy <code/windy/FALSE> ;
|
|
182
|
+
prop:humidity 96 ;
|
|
183
|
+
prop:temperature 70 ;
|
|
184
|
+
.
|
|
185
|
+
|
|
186
|
+
ns:obs5 a qb:Observation ;
|
|
187
|
+
qb:dataSet ns:dataset-weather ;
|
|
188
|
+
prop:outlook <code/outlook/rainy> ;
|
|
189
|
+
prop:play <code/play/yes> ;
|
|
190
|
+
prop:windy <code/windy/FALSE> ;
|
|
191
|
+
prop:humidity 80 ;
|
|
192
|
+
prop:temperature 68 ;
|
|
193
|
+
.
|
|
194
|
+
|
|
195
|
+
ns:obs6 a qb:Observation ;
|
|
196
|
+
qb:dataSet ns:dataset-weather ;
|
|
197
|
+
prop:outlook <code/outlook/rainy> ;
|
|
198
|
+
prop:play <code/play/no> ;
|
|
199
|
+
prop:windy <code/windy/TRUE> ;
|
|
200
|
+
prop:humidity 70 ;
|
|
201
|
+
prop:temperature 65 ;
|
|
202
|
+
.
|
|
203
|
+
|
|
204
|
+
ns:obs7 a qb:Observation ;
|
|
205
|
+
qb:dataSet ns:dataset-weather ;
|
|
206
|
+
prop:outlook <code/outlook/overcast> ;
|
|
207
|
+
prop:play <code/play/yes> ;
|
|
208
|
+
prop:windy <code/windy/TRUE> ;
|
|
209
|
+
prop:humidity 65 ;
|
|
210
|
+
prop:temperature 64 ;
|
|
211
|
+
.
|
|
212
|
+
|
|
213
|
+
ns:obs8 a qb:Observation ;
|
|
214
|
+
qb:dataSet ns:dataset-weather ;
|
|
215
|
+
prop:outlook <code/outlook/sunny> ;
|
|
216
|
+
prop:play <code/play/no> ;
|
|
217
|
+
prop:windy <code/windy/FALSE> ;
|
|
218
|
+
prop:humidity 95 ;
|
|
219
|
+
prop:temperature 72 ;
|
|
220
|
+
.
|
|
221
|
+
|
|
222
|
+
ns:obs9 a qb:Observation ;
|
|
223
|
+
qb:dataSet ns:dataset-weather ;
|
|
224
|
+
prop:outlook <code/outlook/sunny> ;
|
|
225
|
+
prop:play <code/play/yes> ;
|
|
226
|
+
prop:windy <code/windy/FALSE> ;
|
|
227
|
+
prop:humidity 70 ;
|
|
228
|
+
prop:temperature 69 ;
|
|
229
|
+
.
|
|
230
|
+
|
|
231
|
+
ns:obs10 a qb:Observation ;
|
|
232
|
+
qb:dataSet ns:dataset-weather ;
|
|
233
|
+
prop:outlook <code/outlook/rainy> ;
|
|
234
|
+
prop:play <code/play/yes> ;
|
|
235
|
+
prop:windy <code/windy/FALSE> ;
|
|
236
|
+
prop:humidity 80 ;
|
|
237
|
+
prop:temperature 75 ;
|
|
238
|
+
.
|
|
239
|
+
|
|
240
|
+
ns:obs11 a qb:Observation ;
|
|
241
|
+
qb:dataSet ns:dataset-weather ;
|
|
242
|
+
prop:outlook <code/outlook/sunny> ;
|
|
243
|
+
prop:play <code/play/yes> ;
|
|
244
|
+
prop:windy <code/windy/TRUE> ;
|
|
245
|
+
prop:humidity 70 ;
|
|
246
|
+
prop:temperature 75 ;
|
|
247
|
+
.
|
|
248
|
+
|
|
249
|
+
ns:obs12 a qb:Observation ;
|
|
250
|
+
qb:dataSet ns:dataset-weather ;
|
|
251
|
+
prop:outlook <code/outlook/overcast> ;
|
|
252
|
+
prop:play <code/play/yes> ;
|
|
253
|
+
prop:windy <code/windy/TRUE> ;
|
|
254
|
+
prop:humidity 90 ;
|
|
255
|
+
prop:temperature 72 ;
|
|
256
|
+
.
|
|
257
|
+
|
|
258
|
+
ns:obs13 a qb:Observation ;
|
|
259
|
+
qb:dataSet ns:dataset-weather ;
|
|
260
|
+
prop:outlook <code/outlook/overcast> ;
|
|
261
|
+
prop:play <code/play/yes> ;
|
|
262
|
+
prop:windy <code/windy/FALSE> ;
|
|
263
|
+
prop:humidity 75 ;
|
|
264
|
+
prop:temperature 81 ;
|
|
265
|
+
.
|
|
266
|
+
|
|
267
|
+
ns:obs14 a qb:Observation ;
|
|
268
|
+
qb:dataSet ns:dataset-weather ;
|
|
269
|
+
prop:outlook <code/outlook/rainy> ;
|
|
270
|
+
prop:play <code/play/no> ;
|
|
271
|
+
prop:windy <code/windy/TRUE> ;
|
|
272
|
+
prop:humidity 91 ;
|
|
273
|
+
prop:temperature 71 ;
|
|
274
|
+
.
|
|
275
|
+
|
data/spec/writer_spec.rb
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
require_relative '../lib/bio-publisci.rb'
|
|
2
|
+
|
|
3
|
+
describe PubliSci::Writers do
|
|
4
|
+
before(:each) do
|
|
5
|
+
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
it "should create reference CSV from turtle" do
|
|
9
|
+
writer = PubliSci::Writers::CSV.new
|
|
10
|
+
out = writer.from_turtle('spec/turtle/bacon')
|
|
11
|
+
|
|
12
|
+
out.should == IO.read('spec/csv/bacon.csv')
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
it "can use store as an input" do
|
|
16
|
+
writer = PubliSci::Writers::CSV.new
|
|
17
|
+
repo = RDF::Repository.load('spec/turtle/bacon')
|
|
18
|
+
out = writer.from_store(repo)
|
|
19
|
+
|
|
20
|
+
out.should == IO.read('spec/csv/bacon.csv')
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
it "can output Wekka ARFF from turtle string" do
|
|
24
|
+
writer = PubliSci::Writers::ARFF.new
|
|
25
|
+
out = writer.from_turtle('spec/turtle/weather')
|
|
26
|
+
out.should == IO.read('resources/weather.numeric.arff')
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
it "can output Wekka ARFF from a store" do
|
|
30
|
+
writer = PubliSci::Writers::ARFF.new
|
|
31
|
+
repo = RDF::Repository.load('spec/turtle/weather')
|
|
32
|
+
out = writer.from_store(repo)
|
|
33
|
+
|
|
34
|
+
# minor hack since metadata isn't the same
|
|
35
|
+
out = out.gsub(/%.*\n/,'')
|
|
36
|
+
|
|
37
|
+
out.should == IO.read('resources/weather.numeric.arff').gsub(/%.*\n/,'')
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
it "can output JSON from turtle string" do
|
|
41
|
+
writer = PubliSci::Writers::JSON.new
|
|
42
|
+
out = writer.from_turtle('spec/turtle/weather')
|
|
43
|
+
JSON.parse(out).size.should > 0
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
it "can output JSON from a store" do
|
|
47
|
+
writer = PubliSci::Writers::JSON.new
|
|
48
|
+
repo = RDF::Repository.load('spec/turtle/weather')
|
|
49
|
+
out = writer.from_store(repo)
|
|
50
|
+
# minor hack since metadata isn't the same
|
|
51
|
+
JSON.parse(out).size.should > 0
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
context "can restrict to a particular dataset" do
|
|
55
|
+
it "for arff" do
|
|
56
|
+
writer = PubliSci::Writers::ARFF.new
|
|
57
|
+
repo = RDF::Repository.load('spec/turtle/weather')
|
|
58
|
+
repo.load('spec/turtle/bacon')
|
|
59
|
+
out = writer.from_store(repo, 'http://onto.strinz.me/dc/dataset/weather/dataset-weather','weather')
|
|
60
|
+
|
|
61
|
+
out = out.gsub(/%.*\n/,'')
|
|
62
|
+
|
|
63
|
+
out.should == IO.read('resources/weather.numeric.arff').gsub(/%.*\n/,'')
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
it "for csv" do
|
|
67
|
+
writer = PubliSci::Writers::CSV.new
|
|
68
|
+
repo = RDF::Repository.load('spec/turtle/reference')
|
|
69
|
+
repo.load('spec/turtle/bacon')
|
|
70
|
+
out = writer.from_store(repo,'http://onto.strinz.me/dc/dataset/bacon/dataset-bacon')
|
|
71
|
+
|
|
72
|
+
out.should == IO.read('spec/csv/bacon.csv')
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,589 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: publisci
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.2
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Will Strinz
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2013-09-26 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: rdf
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - '>='
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '0'
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - '>='
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '0'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: rdf-4store
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - '>='
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '0'
|
|
34
|
+
type: :runtime
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - '>='
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '0'
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: rdf-turtle
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - '>='
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '0'
|
|
48
|
+
type: :runtime
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - '>='
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '0'
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: rdf-rdfxml
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - '>='
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '0'
|
|
62
|
+
type: :runtime
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - '>='
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: '0'
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: json-ld
|
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
|
72
|
+
requirements:
|
|
73
|
+
- - '>='
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: '0'
|
|
76
|
+
type: :runtime
|
|
77
|
+
prerelease: false
|
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
80
|
+
- - '>='
|
|
81
|
+
- !ruby/object:Gem::Version
|
|
82
|
+
version: '0'
|
|
83
|
+
- !ruby/object:Gem::Dependency
|
|
84
|
+
name: rserve-client
|
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
|
86
|
+
requirements:
|
|
87
|
+
- - '>='
|
|
88
|
+
- !ruby/object:Gem::Version
|
|
89
|
+
version: '0'
|
|
90
|
+
type: :runtime
|
|
91
|
+
prerelease: false
|
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
+
requirements:
|
|
94
|
+
- - '>='
|
|
95
|
+
- !ruby/object:Gem::Version
|
|
96
|
+
version: '0'
|
|
97
|
+
- !ruby/object:Gem::Dependency
|
|
98
|
+
name: sparql
|
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
|
100
|
+
requirements:
|
|
101
|
+
- - '>='
|
|
102
|
+
- !ruby/object:Gem::Version
|
|
103
|
+
version: '0'
|
|
104
|
+
type: :runtime
|
|
105
|
+
prerelease: false
|
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
107
|
+
requirements:
|
|
108
|
+
- - '>='
|
|
109
|
+
- !ruby/object:Gem::Version
|
|
110
|
+
version: '0'
|
|
111
|
+
- !ruby/object:Gem::Dependency
|
|
112
|
+
name: slop
|
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
|
114
|
+
requirements:
|
|
115
|
+
- - '>='
|
|
116
|
+
- !ruby/object:Gem::Version
|
|
117
|
+
version: '0'
|
|
118
|
+
type: :runtime
|
|
119
|
+
prerelease: false
|
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
121
|
+
requirements:
|
|
122
|
+
- - '>='
|
|
123
|
+
- !ruby/object:Gem::Version
|
|
124
|
+
version: '0'
|
|
125
|
+
- !ruby/object:Gem::Dependency
|
|
126
|
+
name: sinatra
|
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
|
128
|
+
requirements:
|
|
129
|
+
- - '>='
|
|
130
|
+
- !ruby/object:Gem::Version
|
|
131
|
+
version: '0'
|
|
132
|
+
type: :runtime
|
|
133
|
+
prerelease: false
|
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
135
|
+
requirements:
|
|
136
|
+
- - '>='
|
|
137
|
+
- !ruby/object:Gem::Version
|
|
138
|
+
version: '0'
|
|
139
|
+
- !ruby/object:Gem::Dependency
|
|
140
|
+
name: sinatra-contrib
|
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
|
142
|
+
requirements:
|
|
143
|
+
- - '>='
|
|
144
|
+
- !ruby/object:Gem::Version
|
|
145
|
+
version: '0'
|
|
146
|
+
type: :runtime
|
|
147
|
+
prerelease: false
|
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
149
|
+
requirements:
|
|
150
|
+
- - '>='
|
|
151
|
+
- !ruby/object:Gem::Version
|
|
152
|
+
version: '0'
|
|
153
|
+
- !ruby/object:Gem::Dependency
|
|
154
|
+
name: sinatra-linkeddata
|
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
|
156
|
+
requirements:
|
|
157
|
+
- - '>='
|
|
158
|
+
- !ruby/object:Gem::Version
|
|
159
|
+
version: '0'
|
|
160
|
+
type: :runtime
|
|
161
|
+
prerelease: false
|
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
163
|
+
requirements:
|
|
164
|
+
- - '>='
|
|
165
|
+
- !ruby/object:Gem::Version
|
|
166
|
+
version: '0'
|
|
167
|
+
- !ruby/object:Gem::Dependency
|
|
168
|
+
name: sinatra-cross_origin
|
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
|
170
|
+
requirements:
|
|
171
|
+
- - '>='
|
|
172
|
+
- !ruby/object:Gem::Version
|
|
173
|
+
version: '0'
|
|
174
|
+
type: :runtime
|
|
175
|
+
prerelease: false
|
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
177
|
+
requirements:
|
|
178
|
+
- - '>='
|
|
179
|
+
- !ruby/object:Gem::Version
|
|
180
|
+
version: '0'
|
|
181
|
+
- !ruby/object:Gem::Dependency
|
|
182
|
+
name: rack-flash3
|
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
|
184
|
+
requirements:
|
|
185
|
+
- - '>='
|
|
186
|
+
- !ruby/object:Gem::Version
|
|
187
|
+
version: '0'
|
|
188
|
+
type: :runtime
|
|
189
|
+
prerelease: false
|
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
191
|
+
requirements:
|
|
192
|
+
- - '>='
|
|
193
|
+
- !ruby/object:Gem::Version
|
|
194
|
+
version: '0'
|
|
195
|
+
- !ruby/object:Gem::Dependency
|
|
196
|
+
name: rest-client
|
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
|
198
|
+
requirements:
|
|
199
|
+
- - '>='
|
|
200
|
+
- !ruby/object:Gem::Version
|
|
201
|
+
version: '0'
|
|
202
|
+
type: :runtime
|
|
203
|
+
prerelease: false
|
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
205
|
+
requirements:
|
|
206
|
+
- - '>='
|
|
207
|
+
- !ruby/object:Gem::Version
|
|
208
|
+
version: '0'
|
|
209
|
+
- !ruby/object:Gem::Dependency
|
|
210
|
+
name: rspec
|
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
|
212
|
+
requirements:
|
|
213
|
+
- - ~>
|
|
214
|
+
- !ruby/object:Gem::Version
|
|
215
|
+
version: 2.8.0
|
|
216
|
+
type: :development
|
|
217
|
+
prerelease: false
|
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
219
|
+
requirements:
|
|
220
|
+
- - ~>
|
|
221
|
+
- !ruby/object:Gem::Version
|
|
222
|
+
version: 2.8.0
|
|
223
|
+
- !ruby/object:Gem::Dependency
|
|
224
|
+
name: rdoc
|
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
|
226
|
+
requirements:
|
|
227
|
+
- - ~>
|
|
228
|
+
- !ruby/object:Gem::Version
|
|
229
|
+
version: '3.12'
|
|
230
|
+
type: :development
|
|
231
|
+
prerelease: false
|
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
233
|
+
requirements:
|
|
234
|
+
- - ~>
|
|
235
|
+
- !ruby/object:Gem::Version
|
|
236
|
+
version: '3.12'
|
|
237
|
+
- !ruby/object:Gem::Dependency
|
|
238
|
+
name: cucumber
|
|
239
|
+
requirement: !ruby/object:Gem::Requirement
|
|
240
|
+
requirements:
|
|
241
|
+
- - '>='
|
|
242
|
+
- !ruby/object:Gem::Version
|
|
243
|
+
version: '0'
|
|
244
|
+
type: :development
|
|
245
|
+
prerelease: false
|
|
246
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
247
|
+
requirements:
|
|
248
|
+
- - '>='
|
|
249
|
+
- !ruby/object:Gem::Version
|
|
250
|
+
version: '0'
|
|
251
|
+
- !ruby/object:Gem::Dependency
|
|
252
|
+
name: jeweler
|
|
253
|
+
requirement: !ruby/object:Gem::Requirement
|
|
254
|
+
requirements:
|
|
255
|
+
- - ~>
|
|
256
|
+
- !ruby/object:Gem::Version
|
|
257
|
+
version: 1.8.4
|
|
258
|
+
type: :development
|
|
259
|
+
prerelease: false
|
|
260
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
261
|
+
requirements:
|
|
262
|
+
- - ~>
|
|
263
|
+
- !ruby/object:Gem::Version
|
|
264
|
+
version: 1.8.4
|
|
265
|
+
- !ruby/object:Gem::Dependency
|
|
266
|
+
name: bundler
|
|
267
|
+
requirement: !ruby/object:Gem::Requirement
|
|
268
|
+
requirements:
|
|
269
|
+
- - '>='
|
|
270
|
+
- !ruby/object:Gem::Version
|
|
271
|
+
version: 1.0.21
|
|
272
|
+
type: :development
|
|
273
|
+
prerelease: false
|
|
274
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
275
|
+
requirements:
|
|
276
|
+
- - '>='
|
|
277
|
+
- !ruby/object:Gem::Version
|
|
278
|
+
version: 1.0.21
|
|
279
|
+
- !ruby/object:Gem::Dependency
|
|
280
|
+
name: bio
|
|
281
|
+
requirement: !ruby/object:Gem::Requirement
|
|
282
|
+
requirements:
|
|
283
|
+
- - '>='
|
|
284
|
+
- !ruby/object:Gem::Version
|
|
285
|
+
version: 1.4.2
|
|
286
|
+
type: :development
|
|
287
|
+
prerelease: false
|
|
288
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
289
|
+
requirements:
|
|
290
|
+
- - '>='
|
|
291
|
+
- !ruby/object:Gem::Version
|
|
292
|
+
version: 1.4.2
|
|
293
|
+
- !ruby/object:Gem::Dependency
|
|
294
|
+
name: rdoc
|
|
295
|
+
requirement: !ruby/object:Gem::Requirement
|
|
296
|
+
requirements:
|
|
297
|
+
- - ~>
|
|
298
|
+
- !ruby/object:Gem::Version
|
|
299
|
+
version: '3.12'
|
|
300
|
+
type: :development
|
|
301
|
+
prerelease: false
|
|
302
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
303
|
+
requirements:
|
|
304
|
+
- - ~>
|
|
305
|
+
- !ruby/object:Gem::Version
|
|
306
|
+
version: '3.12'
|
|
307
|
+
- !ruby/object:Gem::Dependency
|
|
308
|
+
name: spoon
|
|
309
|
+
requirement: !ruby/object:Gem::Requirement
|
|
310
|
+
requirements:
|
|
311
|
+
- - '>='
|
|
312
|
+
- !ruby/object:Gem::Version
|
|
313
|
+
version: '0'
|
|
314
|
+
type: :development
|
|
315
|
+
prerelease: false
|
|
316
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
317
|
+
requirements:
|
|
318
|
+
- - '>='
|
|
319
|
+
- !ruby/object:Gem::Version
|
|
320
|
+
version: '0'
|
|
321
|
+
- !ruby/object:Gem::Dependency
|
|
322
|
+
name: spira
|
|
323
|
+
requirement: !ruby/object:Gem::Requirement
|
|
324
|
+
requirements:
|
|
325
|
+
- - '>='
|
|
326
|
+
- !ruby/object:Gem::Version
|
|
327
|
+
version: '0'
|
|
328
|
+
type: :development
|
|
329
|
+
prerelease: false
|
|
330
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
331
|
+
requirements:
|
|
332
|
+
- - '>='
|
|
333
|
+
- !ruby/object:Gem::Version
|
|
334
|
+
version: '0'
|
|
335
|
+
description: 'A toolkit for publishing scientific results and datasets using RDF,
|
|
336
|
+
OWL, and related technologies '
|
|
337
|
+
email: wstrinz@gmail.com
|
|
338
|
+
executables:
|
|
339
|
+
- bio-publisci
|
|
340
|
+
- bio-publisci-server
|
|
341
|
+
extensions: []
|
|
342
|
+
extra_rdoc_files:
|
|
343
|
+
- LICENSE.txt
|
|
344
|
+
- README.md
|
|
345
|
+
- README.rdoc
|
|
346
|
+
files:
|
|
347
|
+
- .document
|
|
348
|
+
- .rspec
|
|
349
|
+
- .travis.yml
|
|
350
|
+
- Gemfile
|
|
351
|
+
- LICENSE.txt
|
|
352
|
+
- README.md
|
|
353
|
+
- README.rdoc
|
|
354
|
+
- Rakefile
|
|
355
|
+
- bin/bio-publisci
|
|
356
|
+
- bin/bio-publisci-server
|
|
357
|
+
- examples/bio-band_integration.rb
|
|
358
|
+
- examples/no_magic.prov
|
|
359
|
+
- examples/no_magic.rb
|
|
360
|
+
- examples/orm.prov
|
|
361
|
+
- examples/primer-full.prov
|
|
362
|
+
- examples/primer.prov
|
|
363
|
+
- examples/prov_dsl.prov
|
|
364
|
+
- examples/safe_gen.rb
|
|
365
|
+
- examples/visualization/primer.prov
|
|
366
|
+
- examples/visualization/prov_viz.rb
|
|
367
|
+
- examples/visualization/viz.rb
|
|
368
|
+
- features/create_generator.feature
|
|
369
|
+
- features/integration.feature
|
|
370
|
+
- features/integration_steps.rb
|
|
371
|
+
- features/metadata.feature
|
|
372
|
+
- features/metadata_steps.rb
|
|
373
|
+
- features/orm.feature
|
|
374
|
+
- features/orm_steps.rb
|
|
375
|
+
- features/prov_dsl.feature
|
|
376
|
+
- features/prov_dsl_steps.rb
|
|
377
|
+
- features/reader.feature
|
|
378
|
+
- features/reader_steps.rb
|
|
379
|
+
- features/step_definitions/bio-publisci_steps.rb
|
|
380
|
+
- features/store.feature
|
|
381
|
+
- features/store_steps.rb
|
|
382
|
+
- features/support/env.rb
|
|
383
|
+
- features/writer.feature
|
|
384
|
+
- features/writer_steps.rb
|
|
385
|
+
- lib/bio-publisci.rb
|
|
386
|
+
- lib/bio-publisci/analyzer.rb
|
|
387
|
+
- lib/bio-publisci/datacube_model.rb
|
|
388
|
+
- lib/bio-publisci/dataset/ORM/data_cube_orm.rb
|
|
389
|
+
- lib/bio-publisci/dataset/ORM/observation.rb
|
|
390
|
+
- lib/bio-publisci/dataset/configuration.rb
|
|
391
|
+
- lib/bio-publisci/dataset/data_cube.rb
|
|
392
|
+
- lib/bio-publisci/dataset/dataset.rb
|
|
393
|
+
- lib/bio-publisci/dataset/dataset_for.rb
|
|
394
|
+
- lib/bio-publisci/dataset/interactive.rb
|
|
395
|
+
- lib/bio-publisci/dsl/config.rb
|
|
396
|
+
- lib/bio-publisci/dsl/dataset_dsl.rb
|
|
397
|
+
- lib/bio-publisci/dsl/dsl.rb
|
|
398
|
+
- lib/bio-publisci/dsl/metadata_dsl.rb
|
|
399
|
+
- lib/bio-publisci/dsl/prov_dsl.rb
|
|
400
|
+
- lib/bio-publisci/metadata/generator.rb
|
|
401
|
+
- lib/bio-publisci/metadata/metadata.rb
|
|
402
|
+
- lib/bio-publisci/metadata/metadata_model.rb
|
|
403
|
+
- lib/bio-publisci/metadata/prov/activity.rb
|
|
404
|
+
- lib/bio-publisci/metadata/prov/agent.rb
|
|
405
|
+
- lib/bio-publisci/metadata/prov/association.rb
|
|
406
|
+
- lib/bio-publisci/metadata/prov/config.rb
|
|
407
|
+
- lib/bio-publisci/metadata/prov/derivation.rb
|
|
408
|
+
- lib/bio-publisci/metadata/prov/element.rb
|
|
409
|
+
- lib/bio-publisci/metadata/prov/entity.rb
|
|
410
|
+
- lib/bio-publisci/metadata/prov/model/prov_models.rb
|
|
411
|
+
- lib/bio-publisci/metadata/prov/plan.rb
|
|
412
|
+
- lib/bio-publisci/metadata/prov/prov.rb
|
|
413
|
+
- lib/bio-publisci/metadata/prov/role.rb
|
|
414
|
+
- lib/bio-publisci/metadata/prov/usage.rb
|
|
415
|
+
- lib/bio-publisci/metadata/publisher.rb
|
|
416
|
+
- lib/bio-publisci/mixins/custom_predicate.rb
|
|
417
|
+
- lib/bio-publisci/mixins/dereferencable.rb
|
|
418
|
+
- lib/bio-publisci/mixins/registry.rb
|
|
419
|
+
- lib/bio-publisci/mixins/vocabulary.rb
|
|
420
|
+
- lib/bio-publisci/output.rb
|
|
421
|
+
- lib/bio-publisci/parser.rb
|
|
422
|
+
- lib/bio-publisci/post_processor.rb
|
|
423
|
+
- lib/bio-publisci/query/query_helper.rb
|
|
424
|
+
- lib/bio-publisci/r_client.rb
|
|
425
|
+
- lib/bio-publisci/readers/arff.rb
|
|
426
|
+
- lib/bio-publisci/readers/base.rb
|
|
427
|
+
- lib/bio-publisci/readers/csv.rb
|
|
428
|
+
- lib/bio-publisci/readers/dataframe.rb
|
|
429
|
+
- lib/bio-publisci/readers/maf.rb
|
|
430
|
+
- lib/bio-publisci/readers/r_cross.rb
|
|
431
|
+
- lib/bio-publisci/readers/r_matrix.rb
|
|
432
|
+
- lib/bio-publisci/store.rb
|
|
433
|
+
- lib/bio-publisci/writers/arff.rb
|
|
434
|
+
- lib/bio-publisci/writers/base.rb
|
|
435
|
+
- lib/bio-publisci/writers/csv.rb
|
|
436
|
+
- lib/bio-publisci/writers/dataframe.rb
|
|
437
|
+
- lib/bio-publisci/writers/json.rb
|
|
438
|
+
- lib/r2rdf.rb
|
|
439
|
+
- lib/template_bak.rb
|
|
440
|
+
- lib/template_bak/publisci.rb
|
|
441
|
+
- lib/vocabs/cc.rb
|
|
442
|
+
- lib/vocabs/cert.rb
|
|
443
|
+
- lib/vocabs/dc.rb
|
|
444
|
+
- lib/vocabs/dc11.rb
|
|
445
|
+
- lib/vocabs/doap.rb
|
|
446
|
+
- lib/vocabs/exif.rb
|
|
447
|
+
- lib/vocabs/foaf.rb
|
|
448
|
+
- lib/vocabs/geo.rb
|
|
449
|
+
- lib/vocabs/http.rb
|
|
450
|
+
- lib/vocabs/ma.rb
|
|
451
|
+
- lib/vocabs/owl.rb
|
|
452
|
+
- lib/vocabs/rdfs.rb
|
|
453
|
+
- lib/vocabs/rsa.rb
|
|
454
|
+
- lib/vocabs/rss.rb
|
|
455
|
+
- lib/vocabs/sioc.rb
|
|
456
|
+
- lib/vocabs/skos.rb
|
|
457
|
+
- lib/vocabs/wot.rb
|
|
458
|
+
- lib/vocabs/xhtml.rb
|
|
459
|
+
- lib/vocabs/xsd.rb
|
|
460
|
+
- resources/maf_example.maf
|
|
461
|
+
- resources/maf_rdf.ttl
|
|
462
|
+
- resources/primer.ttl
|
|
463
|
+
- resources/queries/code_resources.rq
|
|
464
|
+
- resources/queries/codes.rq
|
|
465
|
+
- resources/queries/dataset.rq
|
|
466
|
+
- resources/queries/dimension_ranges.rq
|
|
467
|
+
- resources/queries/dimensions.rq
|
|
468
|
+
- resources/queries/gene.rq
|
|
469
|
+
- resources/queries/hugo_to_ensembl.rq
|
|
470
|
+
- resources/queries/maf_column.rq
|
|
471
|
+
- resources/queries/measures.rq
|
|
472
|
+
- resources/queries/observation_labels.rq
|
|
473
|
+
- resources/queries/observations.rq
|
|
474
|
+
- resources/queries/patient.rq
|
|
475
|
+
- resources/queries/patient_list.rq
|
|
476
|
+
- resources/queries/patients_with_mutation.rq
|
|
477
|
+
- resources/queries/properties.rq
|
|
478
|
+
- resources/queries/test.rq
|
|
479
|
+
- resources/weather.numeric.arff
|
|
480
|
+
- scripts/get_gene_lengths.rb
|
|
481
|
+
- scripts/islet_mlratio.rb
|
|
482
|
+
- scripts/scan_islet.rb
|
|
483
|
+
- scripts/update_reference.rb
|
|
484
|
+
- server/helpers.rb
|
|
485
|
+
- server/public/src-min-noconflict/LICENSE
|
|
486
|
+
- server/public/src-min-noconflict/ace.js
|
|
487
|
+
- server/public/src-min-noconflict/ext-chromevox.js
|
|
488
|
+
- server/public/src-min-noconflict/ext-elastic_tabstops_lite.js
|
|
489
|
+
- server/public/src-min-noconflict/ext-emmet.js
|
|
490
|
+
- server/public/src-min-noconflict/ext-keybinding_menu.js
|
|
491
|
+
- server/public/src-min-noconflict/ext-language_tools.js
|
|
492
|
+
- server/public/src-min-noconflict/ext-modelist.js
|
|
493
|
+
- server/public/src-min-noconflict/ext-old_ie.js
|
|
494
|
+
- server/public/src-min-noconflict/ext-searchbox.js
|
|
495
|
+
- server/public/src-min-noconflict/ext-settings_menu.js
|
|
496
|
+
- server/public/src-min-noconflict/ext-spellcheck.js
|
|
497
|
+
- server/public/src-min-noconflict/ext-split.js
|
|
498
|
+
- server/public/src-min-noconflict/ext-static_highlight.js
|
|
499
|
+
- server/public/src-min-noconflict/ext-statusbar.js
|
|
500
|
+
- server/public/src-min-noconflict/ext-textarea.js
|
|
501
|
+
- server/public/src-min-noconflict/ext-themelist.js
|
|
502
|
+
- server/public/src-min-noconflict/ext-whitespace.js
|
|
503
|
+
- server/public/src-min-noconflict/keybinding-emacs.js
|
|
504
|
+
- server/public/src-min-noconflict/keybinding-vim.js
|
|
505
|
+
- server/public/src-min-noconflict/mode-ruby.js
|
|
506
|
+
- server/public/src-min-noconflict/snippets/ruby.js
|
|
507
|
+
- server/public/src-min-noconflict/theme-twilight.js
|
|
508
|
+
- server/public/src-min-noconflict/worker-coffee.js
|
|
509
|
+
- server/public/src-min-noconflict/worker-css.js
|
|
510
|
+
- server/public/src-min-noconflict/worker-javascript.js
|
|
511
|
+
- server/public/src-min-noconflict/worker-json.js
|
|
512
|
+
- server/public/src-min-noconflict/worker-lua.js
|
|
513
|
+
- server/public/src-min-noconflict/worker-php.js
|
|
514
|
+
- server/public/src-min-noconflict/worker-xquery.js
|
|
515
|
+
- server/routes.rb
|
|
516
|
+
- server/views/dsl.haml
|
|
517
|
+
- server/views/dump.haml
|
|
518
|
+
- server/views/import.haml
|
|
519
|
+
- server/views/new_repository.haml
|
|
520
|
+
- server/views/query.haml
|
|
521
|
+
- server/views/repository.haml
|
|
522
|
+
- spec/ORM/data_cube_orm_spec.rb
|
|
523
|
+
- spec/ORM/prov_model_spec.rb
|
|
524
|
+
- spec/analyzer_spec.rb
|
|
525
|
+
- spec/bnode_spec.rb
|
|
526
|
+
- spec/csv/bacon.csv
|
|
527
|
+
- spec/csv/moar_bacon.csv
|
|
528
|
+
- spec/data_cube_spec.rb
|
|
529
|
+
- spec/dataset_for_spec.rb
|
|
530
|
+
- spec/dsl_spec.rb
|
|
531
|
+
- spec/generators/csv_spec.rb
|
|
532
|
+
- spec/generators/dataframe_spec.rb
|
|
533
|
+
- spec/generators/maf_spec.rb
|
|
534
|
+
- spec/generators/r_cross_spec.rb
|
|
535
|
+
- spec/generators/r_matrix_spec.rb
|
|
536
|
+
- spec/length_lookup_spec.rb
|
|
537
|
+
- spec/maf_query_spec.rb
|
|
538
|
+
- spec/metadata/metadata_dsl_spec.rb
|
|
539
|
+
- spec/prov/activity_spec.rb
|
|
540
|
+
- spec/prov/agent_spec.rb
|
|
541
|
+
- spec/prov/association_spec.rb
|
|
542
|
+
- spec/prov/config_spec.rb
|
|
543
|
+
- spec/prov/derivation_spec.rb
|
|
544
|
+
- spec/prov/entity_spec.rb
|
|
545
|
+
- spec/prov/role_spec.rb
|
|
546
|
+
- spec/prov/usage_spec.rb
|
|
547
|
+
- spec/queries/integrity/1.rq
|
|
548
|
+
- spec/queries/integrity/11.rq
|
|
549
|
+
- spec/queries/integrity/12.rq
|
|
550
|
+
- spec/queries/integrity/14.rq
|
|
551
|
+
- spec/queries/integrity/19_1.rq
|
|
552
|
+
- spec/queries/integrity/19_2.rq
|
|
553
|
+
- spec/queries/integrity/2.rq
|
|
554
|
+
- spec/queries/integrity/3.rq
|
|
555
|
+
- spec/queries/integrity/4.rq
|
|
556
|
+
- spec/queries/integrity/5.rq
|
|
557
|
+
- spec/r_builder_spec.rb
|
|
558
|
+
- spec/resource/.RData
|
|
559
|
+
- spec/resource/example.Rhistory
|
|
560
|
+
- spec/spec_helper.rb
|
|
561
|
+
- spec/turtle/bacon
|
|
562
|
+
- spec/turtle/reference
|
|
563
|
+
- spec/turtle/weather
|
|
564
|
+
- spec/writer_spec.rb
|
|
565
|
+
homepage: http://github.com/wstrinz/bioruby-publisci
|
|
566
|
+
licenses:
|
|
567
|
+
- MIT
|
|
568
|
+
metadata: {}
|
|
569
|
+
post_install_message:
|
|
570
|
+
rdoc_options: []
|
|
571
|
+
require_paths:
|
|
572
|
+
- lib
|
|
573
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
574
|
+
requirements:
|
|
575
|
+
- - '>='
|
|
576
|
+
- !ruby/object:Gem::Version
|
|
577
|
+
version: '0'
|
|
578
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
579
|
+
requirements:
|
|
580
|
+
- - '>='
|
|
581
|
+
- !ruby/object:Gem::Version
|
|
582
|
+
version: '0'
|
|
583
|
+
requirements: []
|
|
584
|
+
rubyforge_project:
|
|
585
|
+
rubygems_version: 2.0.3
|
|
586
|
+
signing_key:
|
|
587
|
+
specification_version: 4
|
|
588
|
+
summary: Publish scientific results to the semantic web
|
|
589
|
+
test_files: []
|