****************************************************************
インスタンストピックの問合せ
****************************************************************
----- すべてのトピック型のすべてのインスタンスを問合せ ---
instance-of($INSTANCE, $TOPIC)?
----- "標目" トピック型のすべてのインスタンスを問合せ ---
using psi1 for i"http://www.h-gis.org/psi/ndlsh/"
instance-of($HEADING, psi1:heading)
order by $HEADING?
*************************************************************
USE-UF 関係を問合せ
*************************************************************
using psi1 for i"http://www.h-gis.org/psi/ndlsh/"
psi1:prior($USE : psi1:use, $UF : psi1:uf)
order by $USE, $UF?
*************************************************************
"BT-NT" 関係にある標目を問合せ
*************************************************************
using psi1 for i"http://www.h-gis.org/psi/ndlsh/"
psi1:superclass-subclass($BT : psi1:superclass, $NT : psi1:subclass)
order by $BT, $NT?
*************************************************************
2階層の "BT-NT" の関係にある標目を問合せ
*************************************************************
using psi1 for i"http://www.h-gis.org/psi/ndlsh/"
psi1:superclass-subclass($GRAND-PARENT : psi1:superclass, $PARENT : psi1:subclass),
psi1:superclass-subclass($PARENT : psi1:superclass, $SON : psi1:subclass)
order by $GRAND-PARENT, $PARENT, $SON?
*************************************************************
"アイスランド詩" の2階層上位にある標目を問合せ
*************************************************************
using psi1 for i"http://id.ndl.go.jp/auth/ndlsh/"
import "grand-parent-child.tl" as gpgc1
gpgc1:grand-parent-child($GRAND-PARENT, psi1:00560124)
order by $GRAND-PARENT?
*************************************************************
"BT-NT" かつ NT の "RT" の関係にある標目を問合せ
*************************************************************
using psi1 for i"http://www.h-gis.org/psi/ndlsh/"
psi1:superclass-subclass($PARENT : psi1:superclass, $SON : psi1:subclass),
psi1:relate($SON : psi1:rt, $RELATE : psi1:rt)
order by $PARENT, $SON, $RELATE?
*************************************************************
"BT" も NT" も持たない標目を問合せ
*************************************************************
using psi1 for i"http://www.h-gis.org/psi/ndlsh/"
select $TOPIC from
instance-of($TOPIC, psi1:heading),
not(psi1:superclass-subclass($SUPER : psi1:superclass, $TOPIC : psi1:subclass)),
not(psi1:superclass-subclass($TOPIC : psi1:superclass, $SUB : psi1:subclass))
order by $TOPIC?
*************************************************************
"BT" も NT" も "RT" も持たない標目を問合せ
*************************************************************
using psi1 for i"http://www.h-gis.org/psi/ndlsh/"
select $TOPIC from
instance-of($TOPIC, psi1:heading),
not(psi1:superclass-subclass($SUPER : psi1:superclass, $TOPIC : psi1:subclass)),
not(psi1:superclass-subclass($TOPIC : psi1:superclass, $SUB : psi1:subclass)),
not(psi1:relate($TOPIC : psi1:rt, $RELATE : psi1:rt))
order by $TOPIC?
|