PREFIX rdf: PREFIX owl: PREFIX rdfs: PREFIX skos: PREFIX skosxl: SELECT ?resource (group_concat(DISTINCT concat(str($rt), ",", str($go), ",", str($dep));separator="|_|") as ?attr_nature) ?proc_1_dummy (GROUP_CONCAT(DISTINCT ?proc_2_labelInternal2; separator=",") AS ?proc_2_label) WHERE { ?resource a/rdfs:subClassOf* rdfs:Datatype . FILTER(isIRI(?resource)) OPTIONAL { values(?st) {(rdfs:Datatype)} graph ?go { ?resource a ?st . } } OPTIONAL { values(?st) { ()()()() ()(skos:Concept)(rdfs:Class)(skosxl:Label)(skos:ConceptScheme)(skos:OrderedCollection)(owl:Ontology) (owl:ObjectProperty)(owl:DatatypeProperty)(owl:AnnotationProperty)(owl:OntologyProperty)} ?t rdfs:subClassOf* ?st graph ?go { ?resource a ?t . } } OPTIONAL { values(?st) {(skos:Collection)(rdf:Property)} graph ?go { ?resource a ?st . } } OPTIONAL { graph ?go { ?resource a ?st . } } BIND(IF(!BOUND(?st), "individual",IF(?st = , "decompComponent",IF(?st = , "vartransTranslationSet",IF(?st = , "limeLexicon",IF(?st = , "ontolexLexicalEntry",IF(?st = , "ontolexForm",IF(?st = , "ontolexLexicalSense",IF(?st = skos:Concept, "concept",IF(?st = skos:ConceptScheme, "conceptScheme",IF(?st = skos:Collection, "skosCollection",IF(?st = skos:OrderedCollection, "skosOrderedCollection",IF(?st = skosxl:Label, "xLabel",IF(?st = rdf:Property, "property",IF(?st = owl:ObjectProperty, "objectProperty",IF(?st = owl:DatatypeProperty, "datatypeProperty",IF(?st = owl:AnnotationProperty, "annotationProperty",IF(?st = owl:OntologyProperty, "ontologyProperty",IF(?st = owl:Ontology, "ontology",IF(?st = rdfs:Class, "cls",IF(?st = owl:Class, "cls",IF(?st = rdfs:Datatype, "dataRange","individual"))))))))))))))))))))) as ?rt) OPTIONAL { BIND( IF(EXISTS {?resource owl:deprecated true}, "true", IF(EXISTS {?resource a owl:DeprecatedClass}, "true", IF(EXISTS {?resource a owl:DeprecatedProperty}, "true", "false"))) as ?dep ) } OPTIONAL { } OPTIONAL { { {?resource |^||^ ?proc_2_entry.} UNION {?proc_2_sense |^||^ ?resource . ?proc_2_sense |^ ?proc_2_entry . } ?proc_2_entry [ ?proc_2_labelInternal ] . } UNION {?resource ?proc_2_labelInternal . } UNION {?resource ?proc_2_labelInternal . }BIND(REPLACE(str(?proc_2_labelInternal), "(,)|(@)", "\\\\$0") as ?proc_2_labelLexicalForm)BIND(REPLACE(lang(?proc_2_labelInternal), "(,)|(@)", "\\\\$0") as ?proc_2_labelLang)BIND(IF(?proc_2_labelLang != "", CONCAT(STR(?proc_2_labelLexicalForm), "@", ?proc_2_labelLang), ?proc_2_labelLexicalForm) AS ?proc_2_labelInternal2) } } GROUP BY ?resource ?proc_1_dummy