@prefix eli:  <http://data.europa.eu/eli/ontology#> .
@prefix wjl:  <https://wik.jp/law/ns#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix dct:  <http://purl.org/dc/terms/> .
@prefix owl:  <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd:  <http://www.w3.org/2001/XMLSchema#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix vann: <http://purl.org/vocab/vann/> .
@prefix void: <http://rdfs.org/ns/void#> .

#################################################################
#  wik.jp/law — wjl: ontology (https://wik.jp/law/ns#)
#
#  設計原則 (wiklaw.md §3):
#   * 法令構造・版・改正・引用の一次語彙は ELI (European Legislation
#     Identifier, http://data.europa.eu/eli/ontology#) を REUSE する。
#     ELI の項は本オントロジーで再定義しない。
#   * ELI に存在しない日本法令固有の概念(準用・政令委任・読替え・
#     所管府省・既存語彙→根拠条文の横串)だけを wjl: に最小限ミントする。
#   * wik.jp/law が自ら主張する関係辺(refparser 由来の cites/準用/委任、
#     改正履歴由来の廃止、所管府省)は wjl: 配下に置き、対応する ELI の
#     上位プロパティへ rdfs:subPropertyOf で接続する。これにより
#     wik.jp 独自の来歴管理(§5.2 名前付きグラフ)を保ちつつ、eli: を
#     使う外部エージェントからの横断クエリにも応答できる。
#
#  ELI 再利用項(本オントロジーでは定義せず参照のみ):
#    クラス   eli:LegalResource, eli:LegalExpression,
#             eli:LegalResourceSubdivision, eli:Agent
#    構造/版  eli:is_realized_by / eli:realizes, eli:is_part_of / eli:has_part,
#             eli:type_document, eli:title, eli:date_publication,
#             eli:first_date_entry_in_force
#    改正/引用 eli:amended_by / eli:amends, eli:cites / eli:cited_by,
#             eli:repeals / eli:repealed_by, eli:basis_for / eli:based_on,
#             eli:number, eli:responsibility_of_agent
#################################################################

<https://wik.jp/law/ns>
    a owl:Ontology ;
    owl:imports <http://data.europa.eu/eli/ontology> ;
    vann:preferredNamespacePrefix "wjl" ;
    vann:preferredNamespaceUri "https://wik.jp/law/ns#" ;
    dct:title "wik.jp/law 日本法令オントロジー (wjl:)"@ja ,
              "wik.jp/law Japanese Legislation Ontology (wjl:)"@en ;
    dct:description "e-Gov法令検索(法令API v2)由来の日本の全法令を Linked Open Data 化するための最小オントロジー。法令構造(Work/Expression/条項号)・版・改正・引用は ELI を再利用し、ELIに無い日本法令固有概念(準用 appliesMutatisMutandis、政令委任 delegatesTo、読替え replacesReading、所管府省 competentMinistry、既存語彙→根拠条文の横串 basedOnProvision 等)のみを wjl: 名前空間に追加する。条文の全文はトリプルに収載せず、rdfs:label に条見出しのみを置き wjl:textUrl で一次資料へリンクする。"@ja ,
                    "A minimal ontology for publishing all Japanese laws (from the e-Gov Law Search API v2) as Linked Open Data. Legislative structure, versioning, amendment and citation reuse the ELI ontology; only Japan-specific notions absent from ELI (mutatis-mutandis application, delegation to subordinate legislation, technical reading substitution, competent ministry, and the cross-vocabulary link from wik.jp SKOS concepts to their enabling statutory provision) are minted under wjl:. Full provision text is not stored in triples: rdfs:label holds the caption only and wjl:textUrl links to the primary source."@en ;
    dct:source <http://data.europa.eu/eli/ontology> ,
               <https://laws.e-gov.go.jp/> ;
    rdfs:seeAlso <https://laws.e-gov.go.jp/api/2> ;
    dct:issued "2026-07-16"^^xsd:date ;
    dct:modified "2026-07-16"^^xsd:date ;
    dct:publisher wjl:publisher ;
    dct:license <https://creativecommons.org/licenses/by/4.0/> ;
    void:sparqlEndpoint <https://sparql.wik.jp/> ;
    skos:historyNote "URIホスト wik.jp は発行者から独立した永続識別子サービス。永続性ポリシー: https://wik.jp/.well-known/persistence"@ja ;
    skos:editorialNote "法令下位資源のURI規約(永続性RULE #1: 一度発行した /law/… URIは再割当てしない — 位置ではなく各資源自身の内容から鍵を導き、tools/lawlod.pyで構成的に衝突・再割当てを防ぐ):(1) 条を持たない本則の項 = /law/{law_id}/p/{m}(査読者ラティフィケーション済。m は項の@Num=内容番号で、/a/{n}/p/{m} と決して衝突しない)。(2) 別表等 = /law/{law_id}/appdx/{family}-{slug(表題)}、family ∈ {table,style,format,fig,note,appdx}(AppdxTable/Style/Format/Fig/Note/Appの各系列)。鍵は出現順序ではなく別表の表題(別表第一・別記様式第１等)の凍結slugであり、これは各別表固有の内容であるため挿入に対して安定する — 枝番別表(別表第一の二、コーパス中132件)が途中に挿入されても既存の別表第二のURIは移動しない。系列接頭辞は互いに素かつハイフンを含まないため系列間衝突は不可能。@Num は一部の法令(20件)にしか無く、後日e-Govが空の@Numを補うと鍵が動くため採番には用いない。同一系列内で表題が重複する稀な場合(35件、例 附録第一号×3)は各別表の内容ハッシュ(sha1先頭12桁)で分離し、異なる内容が同一URIへ黙って併合されることはない。(3) 附則 = /law/{law_id}/suppl/{key}。key は原始附則(制定時附則, AmendLawNum無し)が \"0\"、改正附則は AmendLawNum の凍結slug。衝突判定は slug後の base文字列で行い、同一base が同一法令内で複数現れる稀な場合(≥2の空AmendLawNum等)のみ各附則の内容ハッシュを付す。(2)(3)いずれも鍵は当該資源自身の内容のみに依存し兄弟の順序・個数に依存しないため、e-Govが改正毎に附則・別表を挿入・並べ替えても既発行URIは移動しない。改正附則のAmendLawNumは全国一意(元号+完全な年月日+種別+番号)。キャッシュ349法令(地方自治法576・所得税法351等)で appdx/suppl のURI重複0を実地確認済み。slug の凍結文字集合(URI/Turtle IRIREFで不可の文字のみ_に置換、漢字・仮名・英数字は通過)は変更禁止(変更すると既発行URIが再割当てされる)。(4) 同一の識別@Numを持つ兄弟要素(一次データの欠陥: 同一章下の節番号重複、同一項下の号番号重複、枝番@Numの誤記 — いずれも内容は相異なるため黙って併合すると条項が消失する)は、文書順で最初の出現が清浄なURIを保持し、2番目以降に序数接尾辞 \"-2\",\"-3\"… を付す(例 /ch/2/sec/2-2、/a/18/p/1/i/17-2)。接尾辞は同一キー兄弟間の文書順にのみ依存し、範囲キー(38-84等)と衝突する場合は次の序数へ進む。e-Govが欠陥@Numを訂正した場合は訂正後の@Num由来URIへ移行する(公開前に検知したため既発行URIには影響しない。公開後に発生した場合は序数URIを凍結する — RULE #1)。コーパス9,529法令中の該当は3法令3箇所のみ。(5) dedup_keys がバイト同一のノード群(内容ハッシュまで同一)を単一キーへ併合した場合(例 空題名の別記様式×8、別記マーカー×17)、当該URIのブロックは一度だけ emit する(冪等併合の実体化)。"@ja ;
    skos:editorialNote "ELI項の綴りは公式ELIオントロジー(http://data.europa.eu/eli/ontology、v1.5、Cellar配信のeli.owl)を独立に取得しgrepして全項名を照合済み。設計書 wiklaw.md §3.2 の例中の eli:has_expression / eli:is_amended_by は非公式表記であり、正しくは eli:is_realized_by / eli:amended_by。さらに施行日の上位項は eli:date_entry_in_force ではなく eli:first_date_entry_in_force が正(ELIに date_entry_in_force は存在しない)。本オントロジーの comment・例はすべて正式なELI項名を用いる。所管府省の individual は本オントロジーでは定義せず、wjl:competentMinistry の値は府省庁権威語彙 shocho( https://wik.jp/shocho/ 、現行49+廃止改称41・承継チェーン付き)の概念を用いる。発令機関 wjl:promulgatedBy の上位プロパティ eli:passed_by(『The person or organization that originally passed or made the law』)も同 v1.5 の eli.owl に実在することを独立取得・grep で確認済み。"@ja .

wjl:publisher a foaf:Organization ;
    foaf:name "Terra-International OÜ (Team KitaSan)" ;
    foaf:homepage <https://wik.jp/> .

#################################################################
#  クラス — 法令の文書ツリー (all subclass ELI FRBR classes)
#################################################################

wjl:Law a owl:Class ;
    rdfs:subClassOf eli:LegalResource ;
    rdfs:label "法令"@ja , "Law (legal instrument)"@en ;
    rdfs:comment "日本の一件の法令(法律・政令・省令等)そのもの。版に依存しない同一性を持つ ELI Work。URI例: https://wik.jp/law/129AC0000000089 (民法)。法令種別は eli:type_document で wjl:LawType 概念を指す。"@ja ,
                 "A single Japanese legal instrument (Act, Cabinet Order, Ministerial Ordinance, etc.) as a version-independent ELI Work. Its law type is stated with eli:type_document pointing to a wjl:LawType concept."@en .

wjl:Article a owl:Class ;
    rdfs:subClassOf eli:LegalResourceSubdivision ;
    rdfs:label "条"@ja , "Article"@en ;
    rdfs:comment "法令本文中の一つの条(第○条)。eli:is_part_of で属する法令(Work)へ、wjl:articleNum で条番号(枝番含む)を持つ。"@ja ,
                 "One Article of a law's body. Linked to its parent instrument with eli:is_part_of and carries wjl:articleNum (branch numbers such as \"3_2\" for 第三条の二 included)."@en .

wjl:Paragraph a owl:Class ;
    rdfs:subClassOf eli:LegalResourceSubdivision ;
    rdfs:label "項"@ja , "Paragraph"@en ;
    rdfs:comment "条を構成する一つの項(第○項)。eli:is_part_of で属する条へリンクし、wjl:paragraphNum で項番号を持つ。"@ja ,
                 "One Paragraph within an Article, linked to its parent Article with eli:is_part_of and carrying wjl:paragraphNum."@en .

wjl:Item a owl:Class ;
    rdfs:subClassOf eli:LegalResourceSubdivision ;
    rdfs:label "号"@ja , "Item"@en ;
    rdfs:comment "項(又は条)を構成する一つの号(第○号)。eli:is_part_of で属する項へリンクする。号番号プロパティは項の wjl:paragraphNum と同型で号実体化時に追加する。"@ja ,
                 "One enumerated Item within a Paragraph (or Article), linked to its parent with eli:is_part_of. An item-number datatype property mirroring wjl:paragraphNum will be added when items are materialised."@en .

wjl:SupplProvision a owl:Class ;
    rdfs:subClassOf eli:LegalResourceSubdivision ;
    rdfs:label "附則"@ja , "Supplementary Provision"@en ;
    rdfs:comment "法令の附則。改正ごとに複数存在しうる。施行期日・経過措置等を含む。"@ja ,
                 "A Supplementary Provision (附則) of a law. Multiple may exist, one per amendment, typically stating entry-into-force dates and transitional measures."@en .

wjl:AppdxTable a owl:Class ;
    rdfs:subClassOf eli:LegalResourceSubdivision ;
    rdfs:label "別表"@ja , "Appended Table"@en ;
    rdfs:comment "法令に附属する別表(AppdxTable)。番号で識別される。"@ja ,
                 "An Appended Table (別表) attached to a law, identified by its number."@en .

#################################################################
#  法令種別 SKOS — e-Gov 法令API v2 の LawType 値に対応
#  eli:type_document の値として用いる skos:Concept 群。
#################################################################

wjl:LawType a skos:ConceptScheme ;
    rdfs:label "法令種別"@ja , "Law type"@en ;
    rdfs:comment "e-Gov 法令API v2 の LawType 列挙に対応する法令種別の SKOS 概念スキーム。各概念は eli:type_document の値として使用する。本スキームは主要5種を収める(e-Gov には別途 Constitution(憲法)・Misc(その他)が存在する)。"@ja ,
                 "SKOS concept scheme of law types matching the e-Gov Law Search API v2 LawType enumeration; each concept is used as the value of eli:type_document. This minimal scheme holds the five principal types (e-Gov additionally defines Constitution and Misc)."@en ;
    skos:scopeNote "各概念の skos:notation は e-Gov 法令API v2 の law_info.law_type 列挙値。Act / CabinetOrder / MinisterialOrdinance / Rule は 2026-07-16 の層化サンプル(54法令)で実地確認済み。勅令の列挙値は \"ImperialOrder\"(当初 \"ImperialOrdinance\" と推定していたが実データで訂正)。e-Gov は複数種別を跨ぐ法令に \"Act,CabinetOrder\" 等のカンマ連結値も返す。"@ja ;
    skos:hasTopConcept wjl:Act , wjl:CabinetOrder , wjl:MinisterialOrdinance ,
                       wjl:ImperialOrdinance , wjl:Rule .

wjl:Act a skos:Concept ;
    skos:inScheme wjl:LawType ;
    skos:topConceptOf wjl:LawType ;
    skos:notation "Act" ;
    skos:prefLabel "法律"@ja , "Act"@en ;
    rdfs:label "法律"@ja , "Act"@en ;
    rdfs:comment "国会が制定する法律。e-Gov LawType = \"Act\"。"@ja ,
                 "An Act enacted by the National Diet. e-Gov LawType = \"Act\"."@en .

wjl:CabinetOrder a skos:Concept ;
    skos:inScheme wjl:LawType ;
    skos:topConceptOf wjl:LawType ;
    skos:notation "CabinetOrder" ;
    skos:prefLabel "政令"@ja , "Cabinet Order"@en ;
    rdfs:label "政令"@ja , "Cabinet Order"@en ;
    rdfs:comment "内閣が制定する政令。e-Gov LawType = \"CabinetOrder\"。"@ja ,
                 "A Cabinet Order issued by the Cabinet. e-Gov LawType = \"CabinetOrder\"."@en .

wjl:MinisterialOrdinance a skos:Concept ;
    skos:inScheme wjl:LawType ;
    skos:topConceptOf wjl:LawType ;
    skos:notation "MinisterialOrdinance" ;
    skos:prefLabel "省令"@ja , "Ministerial Ordinance"@en ;
    rdfs:label "省令"@ja , "Ministerial Ordinance"@en ;
    rdfs:comment "各省大臣・内閣府が発する府省令。e-Gov LawType = \"MinisterialOrdinance\"。"@ja ,
                 "A Ministerial Ordinance issued by a ministry or the Cabinet Office. e-Gov LawType = \"MinisterialOrdinance\"."@en .

wjl:ImperialOrdinance a skos:Concept ;
    skos:inScheme wjl:LawType ;
    skos:topConceptOf wjl:LawType ;
    skos:notation "ImperialOrder" ;
    skos:prefLabel "勅令"@ja , "Imperial Ordinance"@en ;
    rdfs:label "勅令"@ja , "Imperial Ordinance"@en ;
    rdfs:comment "日本国憲法施行前に発せられた勅令(現行法令として残存するものを含む)。e-Gov LawType = \"ImperialOrder\"(2026-07-16 の実データで確認。当初 \"ImperialOrdinance\" と推定していたが誤り)。"@ja ,
                 "An Imperial Ordinance issued before the 1947 Constitution (some remain in force). e-Gov LawType = \"ImperialOrder\" (confirmed against live data 2026-07-16; the initial \"ImperialOrdinance\" guess was wrong)."@en .

wjl:Rule a skos:Concept ;
    skos:inScheme wjl:LawType ;
    skos:topConceptOf wjl:LawType ;
    skos:notation "Rule" ;
    skos:prefLabel "規則"@ja , "Rule"@en ;
    rdfs:label "規則"@ja , "Rule"@en ;
    rdfs:comment "各種委員会・会計検査院・人事院等の規則。e-Gov LawType = \"Rule\"。"@ja ,
                 "A Rule issued by a commission or independent authority (e.g. the Board of Audit, the National Personnel Authority). e-Gov LawType = \"Rule\"."@en .

#################################################################
#  参照・準用・委任プロパティ (refparser §5 由来)
#  ELIの上位プロパティへ接続、又は日本固有として独立ミント。
#################################################################

wjl:cites a owl:ObjectProperty ;
    rdfs:subPropertyOf eli:cites ;
    rdfs:label "引用する"@ja , "cites"@en ;
    rdfs:comment "ある条文が他の条文・法令を単純引用する関係(「第○条の規定により」等)。条文参照パーサー(wiklaw §5)が抽出する wik.jp 独自の主張辺であり、外部の ELI 利用者にも届くよう eli:cites の下位プロパティとする(wjl:cites ⊑ eli:cites)。"@ja ,
                 "A plain citation from one provision to another provision or law (\"pursuant to Article N\"). Asserted by wik.jp's reference parser (wiklaw §5); declared rdfs:subPropertyOf eli:cites so that ELI-aware federation still resolves it (wjl:cites is a subproperty of eli:cites)."@en .

wjl:appliesMutatisMutandis a owl:ObjectProperty ;
    rdfs:subPropertyOf eli:cites ;
    rdfs:label "準用する"@ja , "applies mutatis mutandis"@en ;
    rdfs:comment "準用関係(「〜の規定を準用する」)。引用の一種として eli:cites の下位に置く(設計 §3.3 指定)。日本法に特徴的な立法技術で、参照先条文を必要な読替えのうえ適用する。"@ja ,
                 "The mutatis-mutandis application relation (\"the provisions of ... apply mutatis mutandis\"), a Japanese drafting device applying a referenced provision with necessary adaptations. Modelled as a specialisation of citation: rdfs:subPropertyOf eli:cites (per design §3.3)."@en .

wjl:delegatesTo a owl:ObjectProperty ;
    owl:inverseOf wjl:delegatedFrom ;
    rdfs:label "委任する"@ja , "delegates to"@en ;
    rdfs:comment "委任立法の関係。ある条文が下位法令(政令・省令)へ規律を委任する(「政令で定める」「〜省令で定める」)。受け皿法令は題名照合で解決する(未解決は保留)。ELIの eli:basis_for と近縁だが、日本の委任立法という特定の授権関係のため独立ミントとし、上位プロパティは主張しない。"@ja ,
                 "The delegation-of-legislative-power relation: a provision delegates detailed rules to subordinate legislation (\"as prescribed by Cabinet Order / Ministerial Ordinance\"). Related to eli:basis_for but kept as a distinct Japanese notion of statutory delegation; no subproperty axiom is asserted."@en .

wjl:delegatedFrom a owl:ObjectProperty ;
    owl:inverseOf wjl:delegatesTo ;
    rdfs:label "委任元"@ja , "delegated from"@en ;
    rdfs:comment "wjl:delegatesTo の逆向き。下位法令(政令・省令)から、その授権元となる条文への関係。ELIの eli:based_on と近縁。"@ja ,
                 "Inverse of wjl:delegatesTo: from a piece of subordinate legislation to the enabling provision that delegates power to it. Related to eli:based_on."@en .

wjl:replacesReading a owl:ObjectProperty ;
    rdfs:label "読替え適用"@ja , "replaces reading"@en ;
    rdfs:comment "読替え規定(「〜とあるのは〜と読み替える」)によって、準用等の際に語句を差し替える適用関係。ELIに対応概念が無い日本法固有の立法技術のため独立ミント(第二段階以降の抽出対象)。"@ja ,
                 "A technical reading-substitution relation (\"the term X shall be read as Y\") applied when a provision is borrowed. A Japanese drafting device with no ELI counterpart; minted standalone (extracted in a later parser phase)."@en .

#################################################################
#  廃止関係 (改正履歴 API 由来)
#################################################################

wjl:repeals a owl:ObjectProperty ;
    rdfs:subPropertyOf eli:repeals ;
    owl:inverseOf wjl:repealedBy ;
    rdfs:label "廃止する"@ja , "repeals"@en ;
    rdfs:comment "ある法令が他の法令を廃止する関係。e-Gov改正履歴(law_revisions)から導出する wik.jp の主張辺であり、eli:repeals の下位プロパティとする。"@ja ,
                 "A law repeals another law. Derived from the e-Gov revision history (law_revisions); declared rdfs:subPropertyOf eli:repeals."@en .

wjl:repealedBy a owl:ObjectProperty ;
    rdfs:subPropertyOf eli:repealed_by ;
    owl:inverseOf wjl:repeals ;
    rdfs:label "廃止される"@ja , "repealed by"@en ;
    rdfs:comment "wjl:repeals の逆向き。ある法令が他の法令によって廃止される関係。eli:repealed_by の下位プロパティ。"@ja ,
                 "Inverse of wjl:repeals: a law is repealed by another. rdfs:subPropertyOf eli:repealed_by."@en .

#################################################################
#  版・所管プロパティ
#################################################################

wjl:currentExpression a owl:ObjectProperty ;
    rdfs:subPropertyOf eli:is_realized_by ;
    rdfs:domain wjl:Law ;
    rdfs:range eli:LegalExpression ;
    rdfs:label "現行版"@ja , "current expression"@en ;
    rdfs:comment "法令(Work)から、現在施行中の時点版(eli:LegalExpression)を指すプロパティ。ELIは eli:is_realized_by で全版へリンクするが「現行版」を特定する項が無いため補う(設計 §3.3 の最小集合外だが §3.2/§3.4 が要求)。施行日到来で切り替える。"@ja ,
                 "Points from a law (Work) to its currently in-force time-point version (eli:LegalExpression). ELI links a Work to all its expressions via eli:is_realized_by but lacks a \"current\" pointer; this fills that gap (beyond the §3.3 minimal set but required by §3.2/§3.4). Declared rdfs:subPropertyOf eli:is_realized_by."@en .

wjl:competentMinistry a owl:ObjectProperty ;
    rdfs:subPropertyOf eli:responsibility_of_agent ;
    rdfs:label "所管府省"@ja , "competent ministry"@en ;
    rdfs:comment "法令(wjl:Law)又は wik.jp のコード体系語彙(skos:ConceptScheme)を所管する府省(複数可)。ELIの eli:responsibility_of_agent を日本の所管官庁に特化した下位プロパティ。値は府省庁権威語彙 https://wik.jp/shocho/ の概念(現行49+廃止改称41、承継チェーン付き。例: https://wik.jp/shocho/kosei-rodo-sho )。当初は法令のみを定義域としていたが、wik.jp 各語彙スキームの所管府省(コード体系の所管府省)も本プロパティで表すため rdfs:domain・rdfs:range は宣言しない — 意味論は上位プロパティ eli:responsibility_of_agent に委ねる(定義域を wjl:Law とするとスキームが法令であると誤って含意されるため)。"@ja ,
                 "The ministry (or ministries) with administrative jurisdiction over a law (wjl:Law) or over a wik.jp code-system vocabulary (skos:ConceptScheme). A specialisation of eli:responsibility_of_agent for Japan; values are concepts of the shocho authority vocabulary (https://wik.jp/shocho/, e.g. https://wik.jp/shocho/kosei-rodo-sho). Originally domained to laws only, it is now also applied to wik.jp vocabulary schemes, so neither rdfs:domain nor rdfs:range is asserted (a domain of wjl:Law would wrongly entail that schemes are laws; the semantics live in the super-property eli:responsibility_of_agent). rdfs:subPropertyOf eli:responsibility_of_agent."@en .

wjl:promulgatedBy a owl:ObjectProperty ;
    rdfs:subPropertyOf eli:passed_by ;
    rdfs:domain wjl:Law ;
    rdfs:label "発令機関"@ja , "promulgated by"@en ;
    rdfs:comment "法令番号(不変)から導出した、当該法令を制定・発出した機関。値は府省庁権威語彙 https://wik.jp/shocho/ の概念(廃止機関を含む — 例: 大正15年内務省令第36号 → https://wik.jp/shocho/naimu-sho )。所管(wjl:competentMinistry = 現在の管轄)と対になる歴史的事実であり、法律(国会制定)・勅令には付さない。ELIの eli:passed_by(『The person or organization that originally passed or made the law』)の下位プロパティ。"@ja ,
                 "The organ that enacted or issued this law, derived from its (immutable) law number. Values are concepts of the shocho authority vocabulary (https://wik.jp/shocho/), including abolished organs (e.g. 大正15年内務省令第36号 → https://wik.jp/shocho/naimu-sho). A historical fact paired with wjl:competentMinistry (present-day jurisdiction); it is not asserted for Acts (enacted by the National Diet) or Imperial Ordinances. rdfs:subPropertyOf eli:passed_by (\"The person or organization that originally passed or made the law\")."@en .

wjl:textUrl a owl:ObjectProperty ;
    rdfs:label "本文URL"@ja , "source text URL"@en ;
    rdfs:comment "当該法令・条文の本文(HTML/XML)を取得できる一次資料URI。全文はトリプルに入れず本プロパティで dereference 先へリンクする(§3.5)。値はIRI(e-Gov法令検索の該当ページ)。MCP経由の本文取得はこのURIをWorkerが解決して返す。"@ja ,
                 "A dereferenceable primary-source IRI from which the full text (HTML/XML) of the law or provision can be retrieved. Text is not stored in triples; this property links out to it (§3.5). Values are IRIs (e-Gov Law Search pages), so this is an owl:ObjectProperty rather than a literal-valued property."@en .

#################################################################
#  横串プロパティ — 既存語彙 → 根拠条文(本基盤の要, §3.6)
#################################################################

wjl:basedOnProvision a owl:ObjectProperty ;
    rdfs:label "根拠条文"@ja , "based on provision"@en ;
    rdfs:comment "wik.jp の既存語彙(SKOS概念、又はコード体系全体を根拠づける場合は skos:ConceptScheme)から、それを授権・根拠づける法令の条文(wjl:Article/Paragraph/Item/AppdxTable 又は wjl:Law の URI)への関係。省庁横断・法令横断クエリの物理的な接続点であり、本基盤の背骨。ELIの eli:based_on は法令間(LegalResource↔LegalResource)の関係であるのに対し、本プロパティは主体がSKOS側で意味論が異なるため、名前の類似にかかわらず eli:based_on の下位とはしない(独立ミント)。主体は概念単位が原則だが、個々の項目に個別条文が無く体系全体が一つの授権規定に拠る場合(例: 指定添加物の別表、統計基準)はスキーム単位で付す — このため rdfs:domain は宣言しない(スキームへの適用が skos:ConceptScheme⊑skos:Concept を誤推論させないため)。値域も原則条文URIだが法令全体を指す場合があるため rdfs:range は宣言しない。"@ja ,
                 "Links an existing wik.jp vocabulary concept (a skos:Concept — or the skos:ConceptScheme itself when the whole code system rests on a single enabling provision, e.g. an appended table or a statistics standard) to the statutory provision (a wjl:Article/Paragraph/Item/AppdxTable, or a wjl:Law URI) that authorises or grounds it. This is the backbone connector enabling cross-ministry, cross-statute queries. Unlike eli:based_on (which relates LegalResource to LegalResource), the subject here is on the SKOS side, so despite the name it is NOT a subproperty of eli:based_on. rdfs:domain is deliberately NOT asserted (scheme-level use must not entail ConceptScheme ⊑ Concept); rdfs:range is likewise left unconstrained and documented here."@en .

#################################################################
#  リテラル(データ型)プロパティ — 法令標準XMLから直接
#################################################################

wjl:lawId a owl:DatatypeProperty ;
    rdfs:subPropertyOf dct:identifier ;
    rdfs:range xsd:string ;
    rdfs:label "法令ID"@ja , "law ID"@en ;
    rdfs:comment "e-Gov 法令検索の法令ID(URIの主キー)。年(和暦通算)+種別コード+番号からなる内部一意ID。例: \"129AC0000000089\"(民法)。dct:identifier の下位プロパティ。"@ja ,
                 "The e-Gov Law Search law ID used as the URI primary key; an internal unique identifier of era-year + type code + number, e.g. \"129AC0000000089\" (Civil Code). rdfs:subPropertyOf dct:identifier."@en .

wjl:lawNum a owl:DatatypeProperty ;
    rdfs:subPropertyOf eli:number ;
    rdfs:label "法令番号"@ja , "law number"@en ;
    rdfs:comment "法令番号(人間可読・公的引用形式)。例: \"明治二十九年法律第八十九号\"@ja。ELIの法令番号 eli:number の下位プロパティとし、日本の正式表記文字列を保持する。"@ja ,
                 "The formal, human-readable law number used for official citation, e.g. \"明治二十九年法律第八十九号\"@ja (Act No. 89 of 1896). rdfs:subPropertyOf eli:number."@en .

wjl:articleNum a owl:DatatypeProperty ;
    rdfs:range xsd:string ;
    rdfs:label "条番号"@ja , "article number"@en ;
    rdfs:comment "条番号を表す文字列。枝番条(第○条の○)は下線区切りで表す(例: \"3_2\" = 第三条の二)。ELIには条番号専用の項が無いため独立ミント。"@ja ,
                 "The article number as a string; branch articles (第○条の○) are written with an underscore, e.g. \"3_2\" for 第三条の二. ELI has no dedicated article-number term, so this is minted standalone."@en .

wjl:paragraphNum a owl:DatatypeProperty ;
    rdfs:range xsd:string ;
    rdfs:label "項番号"@ja , "paragraph number"@en ;
    rdfs:comment "項番号を表す文字列。wjl:Paragraph に付す。ELIには項番号専用の項が無いため独立ミント。"@ja ,
                 "The paragraph number as a string, attached to a wjl:Paragraph. Minted standalone as ELI has no dedicated paragraph-number term."@en .

wjl:enforcementDate a owl:DatatypeProperty ;
    rdfs:subPropertyOf eli:first_date_entry_in_force ;
    rdfs:range xsd:date ;
    rdfs:label "施行日"@ja , "enforcement date"@en ;
    rdfs:comment "時点版(Expression)の施行日。ELIの eli:first_date_entry_in_force を日本法令の施行日に特化した下位プロパティ。ELIには eli:date_entry_in_force という項は存在せず(v1.5で確認)、施行日を表す唯一の項が eli:first_date_entry_in_force(『the first date any part of the legal resource or legal expression came into force』)であるためこれを上位に採る。"@ja ,
                 "The enforcement (entry-into-force) date of a time-point version (Expression). A specialisation of eli:first_date_entry_in_force for Japanese law; rdfs:subPropertyOf eli:first_date_entry_in_force. (ELI has no eli:date_entry_in_force term — verified against ELI ontology v1.5 — so its sole entry-in-force term eli:first_date_entry_in_force is used as the super-property.)"@en .

wjl:caption a owl:DatatypeProperty ;
    rdfs:label "条見出し"@ja , "provision caption"@en ;
    rdfs:comment "条(項)の括弧書き見出しのみを保持する言語タグ付き文字列(例: \"不法行為による損害賠償\"@ja)。rdfs:label は「第○条(見出し)」の完全形を保持するのに対し、本プロパティは見出し語句だけを分離して持つ。全文はトリプルに収載しない(§3.5)。"@ja ,
                 "The parenthetical caption of a provision only, as a language-tagged string, e.g. \"不法行為による損害賠償\"@ja. While rdfs:label carries the full \"Article N (caption)\" form, this property isolates the caption text. Full provision text is never stored (§3.5)."@en .

# 所管府省の individual は本オントロジーでは定義しない。
# wjl:competentMinistry の値は府省庁権威語彙 https://wik.jp/shocho/
# (現行49+廃止改称41、承継チェーン付き)の概念を用いる。
