File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,8 @@ Start by creating the ld-query object:
150
150
var context = LD ( {
151
151
" @vocab" : " http://www.schema.org/" ,
152
152
" foaf" : " http://xmlns.com/foaf/0.1/" ,
153
- " ex" : " http://www.example.org#"
153
+ " ex" : " http://www.example.org#" ,
154
+ " isbn" : " http://www.isbnsearch.org/isbn/"
154
155
} );
155
156
156
157
var doc = context ( data );
161
162
var doc = LD ( data, {
162
163
" @vocab" : " http://www.schema.org/" ,
163
164
" foaf" : " http://xmlns.com/foaf/0.1/" ,
164
- " ex" : " http://www.example.org#"
165
+ " ex" : " http://www.example.org#" ,
166
+ " isbn" : " http://www.isbnsearch.org/isbn/"
165
167
} );
166
168
```
167
169
@@ -203,6 +205,10 @@ doc.queryAll("somepropertynotinyourdocument @value") // []
203
205
204
206
doc .query (" ex:favouriteReads[@index=pynchon_gp] name @value" ) // "Gravity's Rainbow"
205
207
208
+ doc .query (" *[@id=isbn:9780143039945] name @value" ) // "Gravity's Rainbow"
209
+ doc .query (" [@id=isbn:9780143039945] name @value" ) // "Gravity's Rainbow"
210
+ doc .query (" #isbn:9780143039945 name @value" ) // "Gravity's Rainbow"
211
+
206
212
doc .queryAll (" ex:favouriteReads @index" ) // [ "banks-exc", "pynchon-gr" ]
207
213
doc .query (" ex:favouriteReads @id" ) // [ "http://www.isbnsearch.org/isbn/9780553575378" ]
208
214
You can’t perform that action at this time.
0 commit comments