OWL Ontology Reference
This page documents the complete OWL ontology for the semantic web component of the shipping system. The ontology is defined insvc-web-semantica/src/main/resources/encomiendas.ttl and provides RDF/OWL representations of shipment data.
Ontology Metadata
IRI:http://www.encomiendas.com/ontologia#Prefix:
enc:Label: “Ontología de Envíos y Encomiendas” (Spanish)
Description: OWL ontology for managing shipments and packages between branch offices
Source: svc-web-semantica/src/main/resources/encomiendas.ttl:10
Namespaces
OWL Classes
Core Classes
enc:Cliente
enc:Cliente
Type:
Label: “Cliente” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:18Description: Natural person acting as sender of a shipment.Disjoint With:
owl:ClassLabel: “Cliente” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:18Description: Natural person acting as sender of a shipment.Disjoint With:
enc:Envio, enc:Sucursal, enc:EncomiendaA resource cannot be both a Cliente and any other main class simultaneously.
enc:Envio
enc:Envio
Type:
Label: “Envío” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:22Description: Transport of a package from origin branch to destination branch.Disjoint With:
owl:ClassLabel: “Envío” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:22Description: Transport of a package from origin branch to destination branch.Disjoint With:
enc:Cliente, enc:Sucursal, enc:EncomiendaSubclasses:enc:EnvioUrgenteenc:EnvioFragilenc:EnvioPesado
enc:Encomienda
enc:Encomienda
Type:
Label: “Encomienda” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:26Description: Physical package or parcel that is part of a shipment.Disjoint With:
owl:ClassLabel: “Encomienda” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:26Description: Physical package or parcel that is part of a shipment.Disjoint With:
enc:Cliente, enc:Envio, enc:Sucursalenc:Sucursal
enc:Sucursal
Type:
Label: “Sucursal” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:30Description: Physical branch office where packages are received and delivered.Disjoint With:
owl:ClassLabel: “Sucursal” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:30Description: Physical branch office where packages are received and delivered.Disjoint With:
enc:Cliente, enc:Envio, enc:EncomiendaEnvio Subclasses
enc:EnvioUrgente
enc:EnvioUrgente
Type:
Label: “Envío Urgente” (es)
Subclass Of:
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:35Description: Shipment with immediate delivery priority.
owl:ClassLabel: “Envío Urgente” (es)
Subclass Of:
enc:EnvioLocation: svc-web-semantica/src/main/resources/encomiendas.ttl:35Description: Shipment with immediate delivery priority.
enc:EnvioFragil
enc:EnvioFragil
Type:
Label: “Envío Frágil” (es)
Subclass Of:
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:40Description: Shipment containing delicate objects requiring special handling.
owl:ClassLabel: “Envío Frágil” (es)
Subclass Of:
enc:EnvioLocation: svc-web-semantica/src/main/resources/encomiendas.ttl:40Description: Shipment containing delicate objects requiring special handling.
Mark shipments as fragile to ensure proper care during transport.
enc:EnvioPesado
enc:EnvioPesado
Type:
Label: “Envío Pesado” (es)
Subclass Of:
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:45Description: Shipment with weight exceeding 20kg, requiring special transport.
owl:ClassLabel: “Envío Pesado” (es)
Subclass Of:
enc:EnvioLocation: svc-web-semantica/src/main/resources/encomiendas.ttl:45Description: Shipment with weight exceeding 20kg, requiring special transport.
Object Properties
Object properties define relationships between resources.enc:realizaEnvio
enc:realizaEnvio
Type:
Label: “realiza envío” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:62Domain:
Range:
Inverse Of:
owl:ObjectPropertyLabel: “realiza envío” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:62Domain:
enc:ClienteRange:
enc:EnvioInverse Of:
enc:esRealizadoPorDescription: Relationship between a sending customer and their shipment.Usage:enc:esRealizadoPor
enc:esRealizadoPor
Type:
Label: “es realizado por” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:68Domain:
Range:
Inverse Of:
owl:ObjectPropertyLabel: “es realizado por” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:68Domain:
enc:EnvioRange:
enc:ClienteInverse Of:
enc:realizaEnvioDescription: Inferred inverse - the shipment belongs to a sending customer.This property is automatically inferred by OWL reasoners when
enc:realizaEnvio is asserted.Datatype Properties
Datatype properties define literal attributes of resources.Cliente Properties
enc:tieneNombre
enc:tieneNombre
Type:
Label: “tiene nombre” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:79Domain:
Range:
owl:DatatypePropertyLabel: “tiene nombre” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:79Domain:
enc:ClienteRange:
xsd:stringDescription: Full name of the customer/sender.Example:enc:tieneDni
enc:tieneDni
Type:
Label: “tiene DNI” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:85Domain:
Range:
owl:DatatypeProperty, owl:FunctionalPropertyLabel: “tiene DNI” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:85Domain:
enc:ClienteRange:
xsd:stringDescription: National Identity Document number (8 digits, unique).Example:enc:tieneTelefono
enc:tieneTelefono
Type:
Label: “tiene teléfono” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:91Domain:
Range:
owl:DatatypePropertyLabel: “tiene teléfono” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:91Domain:
enc:ClienteRange:
xsd:stringDescription: Customer contact phone number (9 digits).Example:enc:tieneCorreo
enc:tieneCorreo
Type:
Label: “tiene correo” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:97Domain:
Range:
owl:DatatypePropertyLabel: “tiene correo” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:97Domain:
enc:ClienteRange:
xsd:stringDescription: Customer email address.Example:Envio Properties - Core
enc:codigoSeguimiento
enc:codigoSeguimiento
Type:
Label: “código de seguimiento” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:107Domain:
Range:Example:
owl:DatatypeProperty, owl:FunctionalPropertyLabel: “código de seguimiento” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:107Domain:
enc:EnvioRange:
xsd:stringDescription: Unique tracking code. Format: ENV-.Functional property - one shipment has exactly one tracking code.
enc:tieneEstado
enc:tieneEstado
Type:
Label: “tiene estado” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:113Domain:
Range:
owl:DatatypeProperty, owl:FunctionalPropertyLabel: “tiene estado” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:113Domain:
enc:EnvioRange:
xsd:stringDescription: Current shipment status.Valid Values:PENDIENTE- Registered, awaiting dispatchEN_TRANSITO- In transit to destinationDISPONIBLE- Available for pickupENTREGADO- DeliveredCANCELADO- Cancelled
enc:fechaEnvio
enc:fechaEnvio
Type:
Label: “fecha de envío” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:119Domain:
Range:
owl:DatatypePropertyLabel: “fecha de envío” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:119Domain:
enc:EnvioRange:
xsd:stringDescription: Date and time when shipment was registered.Example:enc:fechaEntrega
enc:fechaEntrega
Type:
Label: “fecha de entrega” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:125Domain:
Range:
owl:DatatypePropertyLabel: “fecha de entrega” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:125Domain:
enc:EnvioRange:
xsd:stringDescription: Date and time when package was delivered to recipient.Example:enc:tienePrecio
enc:tienePrecio
Type:
Label: “tiene precio” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:131Domain:
Range:Example:
owl:DatatypePropertyLabel: “tiene precio” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:131Domain:
enc:EnvioRange:
xsd:stringDescription: Total cost of shipping service in soles (S/).Currently stored as string. Consider using
xsd:decimal for calculations.Envio Properties - Transport
enc:placaVehiculo
enc:placaVehiculo
Type:
Label: “placa de vehículo” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:137Domain:
Range:
owl:DatatypePropertyLabel: “placa de vehículo” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:137Domain:
enc:EnvioRange:
xsd:stringDescription: License plate of vehicle assigned to transport the shipment.Example:enc:transportadoPor
enc:transportadoPor
Type:
Label: “transportado por” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:143Domain:
Range:
owl:DatatypePropertyLabel: “transportado por” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:143Domain:
enc:EnvioRange:
xsd:stringDescription: Name of driver or company responsible for transport.Example:Envio Properties - Recipient
enc:nombreDestinatario
enc:nombreDestinatario
Type:
Label: “nombre del destinatario” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:150Domain:
Range:
owl:DatatypePropertyLabel: “nombre del destinatario” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:150Domain:
enc:EnvioRange:
xsd:stringDescription: Full name of person who will receive the package.Example:enc:dniDestinatario
enc:dniDestinatario
Type:
Label: “DNI del destinatario” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:156Domain:
Range:
owl:DatatypePropertyLabel: “DNI del destinatario” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:156Domain:
enc:EnvioRange:
xsd:stringDescription: Identity document of person picking up package.Example:Envio Properties - Locations
enc:origenEn
enc:origenEn
Type:
Label: “ciudad de origen” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:163Domain:
Range:
owl:DatatypePropertyLabel: “ciudad de origen” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:163Domain:
enc:EnvioRange:
xsd:stringDescription: City from which shipment is dispatched.Example:enc:destinoEn
enc:destinoEn
Type:
Label: “ciudad de destino” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:169Domain:
Range:
owl:DatatypePropertyLabel: “ciudad de destino” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:169Domain:
enc:EnvioRange:
xsd:stringDescription: City to which shipment is going.Example:enc:sucursalOrigen
enc:sucursalOrigen
Type:
Label: “sucursal de origen” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:175Domain:
Range:
owl:DatatypePropertyLabel: “sucursal de origen” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:175Domain:
enc:EnvioRange:
xsd:stringDescription: Name of branch from which shipment is dispatched.Example:enc:entregarEnSucursal
enc:entregarEnSucursal
Type:
Label: “sucursal de destino” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:181Domain:
Range:
owl:DatatypePropertyLabel: “sucursal de destino” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:181Domain:
enc:EnvioRange:
xsd:stringDescription: Name of branch where recipient will pick up package.Example:Envio Properties - Package Details
enc:contienePaquete
enc:contienePaquete
Type:
Label: “contiene paquete” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:188Domain:
Range:
owl:DatatypePropertyLabel: “contiene paquete” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:188Domain:
enc:EnvioRange:
xsd:stringDescription: Description of package contents.Example:enc:tienePesoKg
enc:tienePesoKg
Type:
Label: “tiene peso (kg)” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:194Domain:
Range:Example:
owl:DatatypePropertyLabel: “tiene peso (kg)” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:194Domain:
enc:EnvioRange:
xsd:decimalDescription: Package weight in kilograms.This property uses
xsd:decimal for precise numeric representation.enc:tieneDimensiones
enc:tieneDimensiones
Type:
Label: “tiene dimensiones” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:200Domain:
Range:
owl:DatatypePropertyLabel: “tiene dimensiones” (es)
Location: svc-web-semantica/src/main/resources/encomiendas.ttl:200Domain:
enc:EnvioRange:
xsd:stringDescription: Package dimensions in format LxWxH (cm). Example: “10x20x30”.Example:Complete Example
Here’s a complete RDF representation of a shipment:Disjointness Axioms
The ontology declares the following classes as mutually disjoint:Usage in SPARQL Queries
Example queries using this ontology:Find all shipments by a customer
Find all urgent shipments in transit
Find heavy shipments (>20kg)
The semantic web service exposes a SPARQL endpoint at the
/api/v1/grafo path for querying the RDF graph.