You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/json/ld/writer.rb
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -75,12 +75,14 @@ def self.options
75
75
RDF::CLI::Option.new(
76
76
symbol: :compactArrays,
77
77
datatype: TrueClass,
78
+
default: true,
78
79
control: :checkbox,
79
80
on: ["--[no-]compact-arrays"],
80
81
description: "Replaces arrays with just one element with that element during compaction. Default is `true` use --no-compact-arrays to disable."){|arg| arg},
81
82
RDF::CLI::Option.new(
82
83
symbol: :compactToRelative,
83
84
datatype: TrueClass,
85
+
default: true,
84
86
control: :checkbox,
85
87
on: ["--[no-]compact-to-relative"],
86
88
description: "Creates document relative IRIs when compacting, if `true`, otherwise leaves expanded. Default is `true` use --no-compact-to-relative to disable."){|arg| arg},
@@ -93,42 +95,48 @@ def self.options
93
95
RDF::CLI::Option.new(
94
96
symbol: :embed,
95
97
datatype: %w(@always@last@never),
98
+
default: '@last',
96
99
control: :select,
97
100
on: ["--embed EMBED"],
98
101
description: "How to embed matched objects (@last)."){|arg| RDF::URI(arg)},
99
102
RDF::CLI::Option.new(
100
103
symbol: :explicit,
101
104
datatype: TrueClass,
105
+
default: false,
102
106
control: :checkbox,
103
107
on: ["--[no-]explicit"],
104
108
description: "Only include explicitly declared properties in output (false)"){|arg| arg},
105
109
RDF::CLI::Option.new(
106
110
symbol: :omitDefault,
107
111
datatype: TrueClass,
112
+
default: false,
108
113
control: :checkbox,
109
114
on: ["--[no-]omitDefault"],
110
115
description: "Omit missing properties from output (false)"){|arg| arg},
111
116
RDF::CLI::Option.new(
112
-
symbol: :processing_mode,
117
+
symbol: :processingMode,
113
118
datatype: %w(json-ld-1.0json-ld-1.1),
114
119
control: :radio,
115
120
on: ["--processingMode MODE",%w(json-ld-1.0json-ld-1.1)],
116
121
description: "Set Processing Mode (json-ld-1.0 or json-ld-1.1)"),
117
122
RDF::CLI::Option.new(
118
123
symbol: :requireAll,
119
124
datatype: TrueClass,
125
+
default: true,
120
126
control: :checkbox,
121
127
on: ["--[no-]requireAll"],
122
128
description: "Require all properties to match (true). Default is `true` use --no-compact-to-relative to disable."){|arg| arg},
123
129
RDF::CLI::Option.new(
124
130
symbol: :stream,
125
131
datatype: TrueClass,
132
+
default: false,
126
133
control: :checkbox,
127
134
on: ["--[no-]stream"],
128
135
description: "Do not attempt to optimize graph presentation, suitable for streaming large graphs."){|arg| arg},
129
136
RDF::CLI::Option.new(
130
137
symbol: :useRdfType,
131
138
datatype: TrueClass,
139
+
default: false,
132
140
control: :checkbox,
133
141
on: ["--[no-]use-rdf-type"],
134
142
description: "Treat `rdf:type` like a normal property instead of using `@type`."){|arg| arg},
0 commit comments