@prefix core: <http://proethica.org/ontology/core#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix pcsh: <http://proethica.org/shapes/core#> .
@prefix proeth: <http://proethica.org/ontology/intermediate#> .
@prefix proeth-prov: <http://proethica.org/provenance#> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

proeth:BenevolentMotiveJustificationConstraint a owl:Class ;
    rdfs:label "Benevolent Motive Justification Constraint" ;
    proeth:confidence "0.88" ;
    proeth:constraintType "ethical" ;
    proeth:textReferences "However, benevolent motives do not make unethical conduct ethical.",
        "However, secretly diverting $700,000 of state DOT funds is not an ethical solution.",
        "helping the residents of Shadyvale cannot be accomplished at the expense of the truth" ;
    proeth-prov:discoveredInCase 58 ;
    proeth-prov:discoveredInPass 2 ;
    proeth-prov:discoveredInSection "discussion" ;
    proeth-prov:firstDiscoveredAt "2026-07-05T07:15:59.388632+00:00"^^xsd:dateTime ;
    proeth-prov:firstDiscoveredInCase 58 ;
    proeth-prov:matchConfidence 0.75 ;
    proeth-prov:matchReasoning "This is a specialization of the canonical Ethical Constraint class (professional ethical boundaries beyond legal requirements). It is distinct from the already recorded Non-Deception Constraint because it does not itself prohibit the deceptive representation; it forecloses the exception route of excusing that conduct by altruistic motive, which the Board explicitly rejects." ;
    proeth-prov:matchedOntologyClass proeth:EthicalConstraint ;
    proeth-prov:matchedOntologyLabel "Ethical Constraint" ;
    proeth-prov:matchesExisting true ;
    proeth-prov:sourceText "The facts of the present case do not indicate Engineer W will personally profit by helping the residents of Shadyvale upgrade their water main. If anything, the facts imply both practical awareness of project efficiencies and a strongly altruistic motivation to do all the good he can do. However, benevolent motives do not make unethical conduct ethical." ;
    rdfs:comment "A prohibition on justifying deceptive or otherwise unethical professional conduct by appeal to benevolent motives or a good end, marking the boundary that a beneficial objective may not be accomplished at the expense of the truth." ;
    rdfs:subClassOf proeth:EthicalConstraint ;
    skos:definition "A prohibition on justifying deceptive or otherwise unethical professional conduct by appeal to benevolent motives or a good end, marking the boundary that a beneficial objective may not be accomplished at the expense of the truth." ;
    skos:scopeNote "[EthicalConstraint] Professional ethical boundaries beyond legal requirements (Benzmüller et al. 2020)" ;
    prov:generatedAtTime "2026-07-05T07:15:59.388632+00:00"^^xsd:dateTime ;
    prov:wasAttributedTo "Case 58 Extraction",
        "claude-fable-5" .

pcsh:CaseAnnotationShape a sh:NodeShape ;
    rdfs:label "Shared per-case annotation schema (all nine components)"@en ;
    rdfs:comment "The cross-component annotation fields on committed case individuals: proeth:confidence (extraction confidence, decimal; all components except Action, whose Step-3 contract carries no confidence field), proeth:textReferences (verbatim supporting quotes, universal), proeth-prov sourceText (the source snippet, on the Step-1/2 provenance layers; Step-3 A/E individuals ground via textReferences only), and the involvement gloss (proeth:caseInvolvement on role individuals, proeth:caseContext on obligation, capability, and constraint individuals). Values are per-individual; the fields do not individuate any type."@en ;
    sh:property [ sh:description "Extraction confidence for this individual (0 to 1)." ;
            sh:name "confidence" ;
            sh:order 1 ;
            sh:path proeth:confidence ],
        [ sh:description "Verbatim case quotes supporting this individual." ;
            sh:name "text references" ;
            sh:order 2 ;
            sh:path proeth:textReferences ],
        [ sh:description "How this individual figures in the case narrative (role individuals; the same text is routed into rdfs:comment)." ;
            sh:name "case involvement" ;
            sh:order 3 ;
            sh:path proeth:caseInvolvement ],
        [ sh:description "Grounding context in this case (obligation, capability, and constraint individuals)." ;
            sh:name "case context" ;
            sh:order 4 ;
            sh:path proeth:caseContext ] ;
    sh:targetClass core:Action,
        core:Capability,
        core:Constraint,
        core:Event,
        core:Obligation,
        core:Principle,
        core:Resource,
        core:Role,
        core:State .

pcsh:ConstraintDefinitionShape a sh:NodeShape ;
    rdfs:label "Constraint definition schema (type-level, descriptive, field contract)"@en ;
    rdfs:comment "What individuates a constraint TYPE: the boundary it states (boundary_type, which drives the subClassOf typing into one of the ten closed boundary-type classes) and the source provision that establishes it. The per-case severity and applicability, the agent it limits, and the action it bounds are per-individual and declared on ConstraintPropertyShape, mirroring the R/P/O/S/Rs/Ca Definition/Property split and the constraint scopeNote (the TYPE is the prohibition plus its source provision; the constrained party, per-occasion applicability, and any exception attach to the case individual). Descriptive only (no validation result); the routing input is the constraint_type schema field (the boundaryType property is its shape-path anchor), not stored as a literal."@en ;
    sh:property [ sh:description "The controlled boundary type, which drives the subClassOf typing into one of the ten closed boundary-type classes: LegalConstraint, RegulatoryConstraint, ResourceConstraint, CompetenceConstraint, JurisdictionalConstraint, ProceduralConstraint, EthicalConstraint, SafetyConstraint, ConfidentialityConstraint, TemporalConstraint. The prohibition/boundary content that individuates the type. A routing input, not stored as a literal." ;
            sh:name "boundary type" ;
            sh:order 1 ;
            sh:path proeth:boundaryType ],
        [ pcsh:informationalOnly true ;
            sh:description "The source CodeProvision that establishes the constraint, via the establishedBy edge. The second type-individuating coordinate: per the scopeNote a constraint type is the boundary it states plus its source provision. Range: CodeProvision." ;
            sh:name "established by" ;
            sh:order 2 ;
            sh:path core:establishedBy ] ;
    sh:targetClass core:Constraint .

pcsh:ConstraintPropertyShape a sh:NodeShape ;
    rdfs:label "Constraint per-case schema (individual data, non-definitional)"@en ;
    rdfs:comment "What a given constraint INDIVIDUAL is described by in a specific case: its per-occasion severity and applicability window, the agent whose conduct it limits, and the action it bounds. These do NOT individuate the constraint TYPE (that is ConstraintDefinitionShape, keyed on the boundary it states and its source provision); their values are per-case, asserted on the individual. Descriptive only."@en ;
    sh:property [ sh:description "The severity of the constraint in this case (critical, high, medium, low); a per-occasion assessment (Dennis severity ordering) that can differ across cases sharing the same boundary." ;
            sh:name "severity" ;
            sh:order 1 ;
            sh:path proeth:severity ],
        [ sh:description "The situational TRIGGER: the circumstances under which the prohibition applies in this case (the Dennis specification-by-context condition); temporalScope carries the durational window." ;
            sh:name "applicability condition" ;
            sh:order 2 ;
            sh:path proeth:applicabilityCondition ],
        [ sh:description "The agent whose conduct the constraint limits, via the outgoing constrainedEntity edge. Range: Agent." ;
            sh:name "constrained entity" ;
            sh:order 3 ;
            sh:path core:constrainedEntity ],
        [ sh:description "The durational WINDOW during which the boundary is in force in this case (e.g. for the duration of the engagement); applicabilityCondition carries the situational trigger under which it applies." ;
            sh:name "temporal scope" ;
            sh:order 4 ;
            sh:path proeth:temporalScope ],
        [ sh:description "The provision or authority string as extracted, kept verbatim on the individual; each dotted NSPE designation that resolves against the provision registry is also materialized as the establishedBy edge (a non-code source survives only in this literal)." ;
            sh:name "source" ;
            sh:order 5 ;
            sh:path proeth:source ],
        [ sh:description "The operative must-not clause, kept verbatim; mirrors skos:definition and is one of the narrative source fields the defeasibility harvest reads from committed TTLs." ;
            sh:name "constraint statement" ;
            sh:order 6 ;
            sh:path proeth:constraintStatement ] ;
    sh:targetClass core:Constraint .

