@prefix ns1: <https://nfdi.fiz-karlsruhe.de/ontology/> .
@prefix ns4: <http://purl.obolibrary.org/obo/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .

ns1:NFDI_0000191 a owl:ObjectProperty ;
    rdfs:label "published by"@en ;
    ns4:IAO_0000118 "has publisher" ;
    ns4:OMO_0002000 """prefix has_publisher: <https://nfdi.fiz-karlsruhe.de/ontology/NFDI_0000191>
prefix participates_in: <http://purl.obolibrary.org/obo/RO_0000056> 
prefix process: <https://nfdi.fiz-karlsruhe.de/ontology/NFDI_0000014>   # publishing process
prefix has_role: <http://purl.obolibrary.org/obo/RO_0000087> 
prefix role: <https://nfdi.fiz-karlsruhe.de/ontology/NFDI_0000193>  # publisher role
prefix has_realization: <http://purl.obolibrary.org/obo/BFO_0000054> 

construct {
?s participates_in: _:proc .
_:proc a process: .
?o has_role: _:role .  
_:role a role: .
_:role has_realization: _:proc . 
?o participates_in: _:proc . 
}
where 
{
?s has_publisher: ?o .
FILTER NOT EXISTS {
 ?s participates_in: ?some_p . 
 ?some_p a process: .
 ?o has_role: ?some_r .  
  ?some_r a role: .
 ?some_r has_realization: ?some_p . 
 ?o participates_in: ?some_p .
}
}""" ;
    rdfs:domain ns4:IAO_0000030 ;
    rdfs:range ns1:NFDI_0001116 ;
    rdfs:subPropertyOf owl:topObjectProperty,
        ns1:NFDI_0000240 ;
    owl:inverseOf ns1:NFDI_0000192 ;
    skos:definition "The property is a relationship between an information content entity and an organization or a person responsible for publishing it."@en .

