microbiomedata / nmdc-schema

National Microbiome Data Collaborative (NMDC) unified data model
https://microbiomedata.github.io/nmdc-schema/
Creative Commons Zero v1.0 Universal
27 stars 8 forks source link

enhance text indexing in GraphDB #1134

Open turbomam opened 1 year ago

turbomam commented 1 year ago

Index-able slots in the schema

search at https://graphdb-dev.microbiomedata.org/sparql

prefix schema: <https://w3id.org/nmdc/nmdc>
prefix mongodb: <mongodb://mongo-loadbalancer.nmdc.production.svc.spin.nersc.gov:27017>
select ?graph ?predicate (count(?s) as ?scount)
where {
    values ?graph {
        schema: mongodb: 
    }
    graph ?graph {
        ?s ?predicate ?o .
    }
    filter(isliteral(?o))
}
group by ?graph ?predicate
order by ?graph desc(count(?s))
turbomam commented 1 year ago

plus the URIs, which contain the schema element names and the data identifiers