Expand description
Legalis-LOD: Linked Open Data (RDF/TTL) export for Legalis-RS.
This crate provides comprehensive RDF export and Linked Data functionality for legal statutes.
§RDF Formats Supported
- Turtle (TTL) - Human-readable RDF format
- N-Triples (NT) - Line-based RDF format
- RDF/XML - XML serialization of RDF
- JSON-LD - JSON-based RDF format
- TriG - Named graph format
§Ontologies and Vocabularies
- ELI (European Legislation Identifier)
- FaBiO (FRBR-aligned Bibliographic Ontology)
- LKIF-Core (Legal Knowledge Interchange Format)
- LegalRuleML (OASIS standard for legal rules)
- Akoma Ntoso (Legal document markup)
- FRBR (Functional Requirements for Bibliographic Records)
- Dublin Core (dc, dcterms)
- SKOS (Simple Knowledge Organization System)
- VOID (Vocabulary of Interlinked Datasets)
- PROV-O (Provenance Ontology)
- Custom Legalis ontology
§Linked Data Features
- Cool URIs for legal resources (ELI-style, hierarchical, flat patterns)
- URI dereferencing with content negotiation
- owl:sameAs linking for entity resolution
- rdfs:seeAlso for related resources
- Integration with EUR-Lex, legislation.gov.uk, Wikidata, DBpedia
§Additional Features
- SHACL and ShEx validation
- SPARQL query generation
- Streaming serialization for large datasets
- Export caching
- RDFa output for HTML embedding
- Provenance tracking (PROV-O)
- License metadata (Creative Commons, etc.)
See EXAMPLES.md for detailed usage examples.
Modules§
- audit_
log - Audit logging for knowledge graph access and operations.
- av_
annotation - Audio/video annotation for legal multimedia content.
- bitemporal
- Bitemporal knowledge modeling for legal data.
- blockchain
- Blockchain-anchored provenance for legal knowledge graphs.
- cache
- Export caching for improved performance.
- competency_
questions - Competency question testing for ontology validation.
- compliance
- Compliance reporting from knowledge graphs.
- content_
addressed - Content-addressed RDF storage using cryptographic hashing.
- continuous_
query - Continuous query evaluation for real-time legal intelligence.
- crossmodal_
reasoning - Cross-modal reasoning for legal knowledge graphs.
- crowdsourced_
evolution - Crowdsourced ontology evolution framework.
- dcat
- DCAT (Data Catalog Vocabulary) support for dataset publishing.
- did
- Decentralized Identifier (DID) support for legal resources.
- document_
layout - Document layout representation for knowledge graphs.
- embeddings
- Graph embedding generation for knowledge graphs.
- enterprise_
deployment - Enterprise knowledge graph deployment framework.
- entity_
linking - Entity linking for legal knowledge graphs.
- external
- External data source integrations.
- fusion
- Legal knowledge fusion for integrating data from multiple sources.
- geosparql
- GeoSPARQL 1.1 support for legal jurisdictions and spatial reasoning.
- governance
- Knowledge governance workflows for enterprise RDF management.
- image_
rdf - Image-to-RDF extraction for legal documents.
- ipld
- IPLD (InterPlanetary Linked Data) support for legal knowledge graphs.
- jurisdiction_
queries - Jurisdiction geometry query support for legal knowledge graphs.
- kg_
completion - Knowledge graph completion for legal knowledge graphs.
- knowledge_
graph - Knowledge graph construction and entity relationship extraction.
- ldn
- Linked Data Notifications (LDN) support.
- link_
prediction - Embedding-based link prediction for legal knowledge graphs.
- linked_
data - Linked Data features for Legalis-LOD.
- map_
exploration - Map-based knowledge exploration for legal geographic data.
- multimodal_
alignment - Multi-modal entity alignment for legal knowledge graphs.
- neural_
symbolic - Neural-symbolic reasoning integration for combining neural networks with symbolic reasoning.
- ontology
- Legal ontology support for Legalis-LOD.
- ontology_
alignment - Ontology alignment tools for mapping between different ontologies.
- ontology_
learning - Ontology learning from legal text.
- ontology_
metrics - Ontology metrics and quality assessment.
- ontology_
versioning - Ontology versioning with change tracking.
- quality
- Data quality metrics for RDF/LOD data.
- rbac
- Role-Based Access Control (RBAC) for RDF data.
- rdfa
- RDFa (RDF in Attributes) output for HTML embedding.
- rdfstar
- RDF-star (RDF*) support for making statements about statements.
- realtime
- Real-time graph updates with pub/sub and incremental materialization.
- reasoning
- OWL 2 RL reasoning and legal-specific inference rules.
- relation_
extraction - Automatic relation extraction for legal knowledge graphs.
- shacl
- SHACL (Shapes Constraint Language) shape generation.
- shex
- ShEx (Shape Expressions) schema generation.
- similarity
- Semantic similarity indexing for efficient similarity search.
- sparql
- SPARQL query generation and endpoint support for exported RDF data.
- sparqlstar
- SPARQL-star query support for querying RDF-star data.
- spatial_
reasoning - Spatial reasoning for legal zones and geographic constraints.
- store
- In-memory RDF triple store with optional persistence.
- streaming
- Streaming RDF serialization for large datasets.
- streaming_
sparql - Streaming SPARQL query processing for continuous data flows.
- temporal_
consistency - Temporal consistency checking for time-aware legal knowledge graphs.
- temporal_
rdf - Temporal RDF with RDF-star support for time-aware legal knowledge graphs.
- time_
aware_ queries - Time-aware SPARQL queries for temporal legal knowledge graphs.
- validation
- RDF validation utilities.
- verifiable
- Verifiable Credentials for legal data.
- versioning
- Dataset versioning and change tracking.
- void_
desc - VOID (Vocabulary of Interlinked Datasets) descriptions.
Structs§
- License
Info - License information for RDF export.
- LodExporter
- LOD exporter for legal statutes.
- Namespaces
- Standard namespace prefixes for legal ontologies.
- Provenance
Info - Provenance information for RDF export.
- Triple
- RDF triple representation.
Enums§
Type Aliases§
- LodResult
- Result type for LOD operations.