Overview# This is the result of investigating how to customize “Snorql for Japan Search,” which is used by Japan Search. I plan to update this article as needed. Please note that it may contain errors.
Changing the Page Title#
_ p o w e r e d B y L a b e l : " C u l t u r a l J a p a n " , " J a p a n S e a r c h " , Changing the Query Endpoint# _ e n d p o i n t : " h t t p s : / / l d . c u l t u r a l . j p / s p a r q l / " , / " h t t p s : / / j p s e a r c h . g o . j p / r d f / s p a r q l / " , Changing the poweredByLink URL#
_ p o w e r e d B y L i n k : " h t t p s : / / c u l t u r a l . j p / " , " h t t p s : / / j p s e a r c h . g o . j p / " ,
< f o o t e / r < U < < y < < f > a s a ! o ! a o e - u - > o h h - r - h S t r r r P e e e < a e A r f f a p f R > = = p = Q " " h l " L . h r i h エ / t e c t ン " t f a t ド > p = t p ポ S s " i s イ n : h o : ン o / t n / ト r / t . / 解 q l p j 説 l d s p < < . : s / / c / e a a u / a > l j r t p c f u s h o r e . r a a g l r o < . c . a j h j p . p i g / d s o a = p . p " a j i p r p / o q / s w l r p e " d a r > f r e b / q d a s l b s p - y i a e " c r x q p h S l l r P " a e A > i f R b n = Q a / " L s " # i " e c > n J d S a p P p o A a i R n n Q t L S < e / e a a n r > d c p h o < i / n a t > < . / a > f o r Changing the Version#
v a r _ s l d b _ v e r s i o n = " v 0 . 0 . 1 " ; / " v 2 . 2 0 . 1 " ; Top Page Description#
i ] n " / , t % / r s " " o 0 % % _ % s s t は 0 0 m 、 % % p S は l n 、 i o S s = r P q A a h l R n d Q e f L < f o ク a . r エ i リ h n J 構 r t a 築 e r p 支 f o a 援 = _ n と \ t 分 " m S か h p e り t l a や t r す p c い s h 結 : を 果 / [ 理 表 / 解 示 w す の w る た w た め . め に k の 、 a チ % n ュ s z ー 1 a ト % k リ を i ア < . ル a c で o す h m 。 r / " e w f o = r \ k " s h / t l t d p / s j : p / s / e w a w r w c . h k / a s n n z o a r k q i l . _ c l o d m b / - w a o b r o k u s t l " d > / e j x p t s e e n a s r i c o h n / < s / n a o > r q o l f _ l % d s b 1 - % a b t o o u t m \ a " k > e 拡 張 S し P た A ツ R ー Q ル L < / q a u > e で r す y 。 ア b プ u リ i ケ l ー d シ i ョ n ン g か ら e の a S s P i A e R r Q L a ク n エ d リ に s は h % o s w 2 % r を e 利 s 用 u し l て t く s だ さ m い u 。 c " h , u n d e r s t a n d a b l e . U s e % s 2 % f o r a p p l i c a t i o n q u e r y . " Intro Description#
i n t ] r [ / , o " / : テ [ [ [ [ ス " " " " [ ト 入 エ 用 S " 力 ン い n , 欄 ド て o 下 ポ い r " も イ る q T し ン R l e く ト D s は の F f t 右 利 モ o " に 用 デ r ] ク 方 ル エ 法 の J リ は 概 a 例 < 要 p が a は a あ < n り h a ま r S す e h e 。 f r a < = e r a \ f c " = h h h \ の r t " 概 e t h 要 f p t は = s t < \ : p a " / s h / : h t j / r t p / e p s j f s e p = : a s \ / r e " / c a h j h r t p . c t s g h p e o . s a . g : r j o c p . / h j w . a p w g p / w o i a . . / p k j s i a p p / n / a i z a r n a p q t k i l r i / - o . s e d c p x u o a p c m r l t / q a i w l i o o - n n r e / / k x \ \ s p " " / l > > l a S 利 d i P 活 / n A 用 j / R ス p \ Q キ s " L ー e > エ マ a ジ ン 概 r ャ ド 説 c パ ポ < h ン イ / / サ ン a s ー ト > n チ 解 を o S 説 ご r P < 覧 q A / く l R a だ _ Q > さ l L を い d エ ご 。 b ン 覧 " - ド く , a ポ だ b イ さ " o ン い S u ト 。 e t 解 " e \ 説 , " < < > / " a S a S n > e h o も e r r 参 e q 照 < f l し a = て f く h " だ r h r さ e t い f t J 。 = p a " \ s p , " : a h / n " t / Q t j S u p p e e s s a r : e c y / a h / r を e w c 使 x w h う a w . < m . g p k a l a . > e n j を s z p ご a / 覧 a k a く r i p だ e . i さ c い p i 。 r m n " o / t , w r i o o " d r d < e k u a d s c / t h b l i r e d e l n f j / = w p \ \ s " " e > h o a I t r r n t c t p r h r s i / o : g p d / h r u / t i c w - m t w h e i w a r . n n k d \ a " t n s > o z i J a d a J k e p a i a p . o n a c f n o ) S m e S / t a e w h r a o e c r r h c k t h s e R / x D S l t F P d A / a M R j r o Q p e d L s a e e . l E a n r S P d c e r p h e i o / m i s a e n n l r t o s < < r o / / q a a l < > > _ a l f ( d h o i b r r n - e a f t J b = h a o \ e p u " a t h g n \ t e e " t n s > p e e A s r ) b : a o / l f u / o t w d r w e S w s t n . c h o k r e r a i q n p R l z t D a i F f k o o i n m r . o c o d J o f e a m l p / t . a w h " n o i ] r s , S k e s e a / n r l d c d p h / o < j i / p n a s t > e . a " h r ] a c , s h / b p a r s i i m c e r e / x \ p " l > a J n a a p t a i n o n S e o a f r c t h h i R s D F S n M o o r d q e l l e P x r t i e m n e s r i < o / n a . > " ] f o r t h e g e n e r a l d e s c r i p t i o n . " ] , Adding Namespaces#
v } a ; r D " " 2 j w d R p l c _ s : n n " d a : ' l m h " e " t : s h t p t p " a t : h c p / t e s / t P : w p r / w : e / w f j . / i p w n x s 3 d e e . l s a o . r r g = c g h . { . 2 j g 0 p o 0 / . 2 d j / c p 0 n / 7 d t / l e o / r w t m l e / # r p ' m r , s o / p " e , r t y # " , Changing the Initial Query#
/ d / d } e / e ? ` f d f s , a e a u f u ? l a l v t u t l _ ? q t q o u _ u e q e r u r y e y r : t y o : ` s b " e e S l E e s L c e E t t C T d o i n D s I t t S i e T n x I c t N t C a T r e w a h W e w H r h E e e R n E { l { o \ a n d \ e t d ? s w i s t c h h o e u m t a : u c s r e e r a t q o u r e r c y h n ユ a ー m ザ e ク : エ 葛 リ 飾 無 北 し 斎 で ロ ; ー \ ド n さ \ れ t た r 時 d に f t s e : x l t a a b r e e l a に ? 表 l 示 a b e l \ n \ t O P T I O N A L { ? s s c h e m a : i m a g e ? i m a g e } \ n } \ n L I M I T 1 0 0 " , Changing Query Examples#
By specifying "ns": ["edm"], you can add prefixes to the search query. However, prefix information needs to be added to example_ns in the same file.
S ` } ` ` } ` n { S ? ? , } / { S ? , } o " ] " E c l " , * " " E c j G " , r m " " , q L h a n m q L h p R n ` q l 「 E u E o b s l u E o s O s , l a 中 x e C e " a e C : U " d b 村 a r T r l : b r T a s P e e 」 m y d e y o : f l を p " f b [ l " ? ? u B . " タ l : s i " " t t r Y [ e : イ e W : f e : : y y c x ト H l : d p p e ? ] a [ ル 1 E a c m [ e e I t m に " R b o " " n y / p 含 E e n ] ク ( ; f p / l む l t ラ c o e l e ア { a ス o i イ ? i ( u ? s = テ l n 型 n s t ム a s ) t o [ " b 別 ( u o , e " コ ? r f l ' ン c c 中 テ h e n . 村 ン o s ' ツ ) . " 数 p 。 a r シ s e ン f プ ? i ル c x な o e 集 u s 約 n の t d 例 ) e で f す W i 。 H n j E e p R d s E : i s { n o u e r x c a e m I p n l f e o _ を n 加 s え , る こ i と f で ア n イ e テ c ム e に s 限 s 定 a し r て y い ま 必 す 要 。 に " 応 , じ て " e C x o a u m n p t l e i _ t n e s m で s 定 義 b し y た 接 t 頭 y 辞 p リ e ス . ト A s i m p l e e x a m p l e o f a g g r e g a t i o n . j p s : s o u r c e I n f o e n s u r e s t h e r e s u l t i n g ? c h o a r e i t e m s ( n o t a g e n t s , l o c a t i o n s , e t c ) " ] ,
Changing Settings for Simultaneously Describing Sub-resources Along with the Requested URI#
By default, the fragment identifiers accessinfo and sourceinfo are added, but here is an example of setting it to add only accessinfo.
_ e n d p o i n t : " h t t p s : / / l d . c u l t u r a l . j p / s p a r q l / " , / " h t t p s : / / j p s e a r c h . g o . j p / r d f / s p a r q l / " , 0
The URI pattern to which this setting is added is specified as follows. Here is an example where the default https://ld.cultural.jp has been removed.
_ e n d p o i n t : " h t t p s : / / l d . c u l t u r a l . j p / s p a r q l / " , / " h t t p s : / / j p s e a r c h . g o . j p / r d f / s p a r q l / " , 1
With this setting, fragment identifiers will no longer be added as shown below.
By modifying datauri_pat, you can change the base data URI pattern. For example, by configuring it as follows, labels and other information will be additionally fetched for resources whose URI contains xxx.yyy.zzz.
_ e n d p o i n t : " h t t p s : / / l d . c u l t u r a l . j p / s p a r q l / " , / " h t t p s : / / j p s e a r c h . g o . j p / r d f / s p a r q l / " , 2
Thumbnail Image Display#
The property used for thumbnail images is specified below. If you want to use something other than schema:image, change this.
_ e n d p o i n t : " h t t p s : / / l d . c u l t u r a l . j p / s p a r q l / " , / " h t t p s : / / j p s e a r c h . g o . j p / r d f / s p a r q l / " , 3
The DOM manipulation section is as follows.
_ e n d p o i n t : " h t t p s : / / l d . c u l t u r a l . j p / s p a r q l / " , / " h t t p s : / / j p s e a r c h . g o . j p / r d f / s p a r q l / " , 4
Default Maximum Display Count When There Are Many Values for the Same Property in Describe Results (Folding)#
_ e n d p o i n t : " h t t p s : / / l d . c u l t u r a l . j p / s p a r q l / " , / " h t t p s : / / j p s e a r c h . g o . j p / r d f / s p a r q l / " , 5
Properties That Set Value URIs as Direct Links# For image URLs and similar, clicking the link directly accesses that link.
This is configured as follows.
_ e n d p o i n t : " h t t p s : / / l d . c u l t u r a l . j p / s p a r q l / " , / " h t t p s : / / j p s e a r c h . g o . j p / r d f / s p a r q l / " , 6
License URI Badge#
_ e n d p o i n t : " h t t p s : / / l d . c u l t u r a l . j p / s p a r q l / " , / " h t t p s : / / j p s e a r c h . g o . j p / r d f / s p a r q l / " , 7
_ e n d p o i n t : " h t t p s : / / l d . c u l t u r a l . j p / s p a r q l / " , / " h t t p s : / / j p s e a r c h . g o . j p / r d f / s p a r q l / " , 8
Prefix:Namespace URI Mapping for QName Display Beyond _namespace Settings#
By default, http://purl.org/net/ns/policy# is not shown as a QName, but by configuring the following, you can add prefixes for QName display.
_ e n d p o i n t : " h t t p s : / / l d . c u l t u r a l . j p / s p a r q l / " , / " h t t p s : / / j p s e a r c h . g o . j p / r d f / s p a r q l / " , 9
EasySPARQL Query Content# For example, the “Where” query is configured as follows.
_ p o w e r e d B y L i n k : " h t t p s : / / c u l t u r a l . j p / " , " h t t p s : / / j p s e a r c h . g o . j p / " , 0
Setting Property Display Order for Describe Items#
_ p o w e r e d B y L i n k : " h t t p s : / / c u l t u r a l . j p / " , " h t t p s : / / j p s e a r c h . g o . j p / " , 1
Hiding EasySPARQL# _ p o w e r e d B y L i n k : " h t t p s : / / c u l t u r a l . j p / " , " h t t p s : / / j p s e a r c h . g o . j p / " , 2