Editing
Architecture
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Core composition pattern == Three levels: # '''Core protocol''' (duralex): defines WHAT can be done (DocumentStore protocol, SearchEngine protocol). # '''Country implementation''' (duralex-fr): implements HOW for a specific jurisdiction (formatters, reference resolvers, tag schemas). # '''Application''' (duralex-mcp): composes protocols + implementations at startup. '''Reference resolution''' uses <code>TagQuery</code> as the universal interface between jurisdiction parsers and the store. This is a core architectural decision β all reference resolution across all jurisdictions flows through TagQuery. There are no typed reference classes per jurisdiction. * Core defines: <code>TagQuery</code> dataclass (<code>language</code>, <code>kind</code>, <code>tag_filters: TagFilterSet</code>, <code>should_sort_in_force_first</code>, <code>at_date</code>) and <code>TagFilterSet</code> (immutable tuple of <code>TagFilter</code> predicates with operators EQ/IN/NOT_IN/ILIKE/EXISTS/NOT_EXISTS/NORMALIZE). See [[MCP/Reference resolution]]. * Jurisdiction plugin (e.g., duralex-fr): parses "article 1240 du code civil" into <code>TagQuery(language="fr", kind="legislation", tag_filters=TagFilterSet.from_tags({"article_number": "1240", "code": "Code civil"}))</code>. * Store: translates <code>TagQuery</code> to SQL via the shared <code>build_tag_filter_conditions</code> builder (generic, zero jurisdiction knowledge).
Summary:
Please note that all contributions to Dura Lex Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see
Dura Lex Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Tools
What links here
Related changes
Page information