GithubHelp home page GithubHelp logo

Comments (3)

turbomam avatar turbomam commented on July 24, 2024
PREFIX nmdc: <https://w3id.org/nmdc/>
select 
?p (count(?s) as ?count)
    where {
    ?s a nmdc:TextValue ;
       ?p ?o .
}
group by ?p
p count
rdf:type 11885
nmdc:has_raw_value 11885

from nmdc-schema.

turbomam avatar turbomam commented on July 24, 2024
PREFIX nmdc: <https://w3id.org/nmdc/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
select 
?t ?p (count(?s) as ?count)
where {
    ?t rdfs:subClassOf* nmdc:AttributeValue .
    ?s a ?t ;
       ?p ?o .
}
group by ?t ?p
order by ?t ?p
row t p count
1 nmdc:ControlledIdentifiedTermValue rdf:type 26318
2 nmdc:ControlledIdentifiedTermValue nmdc:has_raw_value 10622
3 nmdc:ControlledIdentifiedTermValue nmdc:term 26318
4 nmdc:ControlledTermValue rdf:type 7748
5 nmdc:ControlledTermValue nmdc:has_raw_value 7748
6 nmdc:ControlledTermValue nmdc:term 435
7 nmdc:GeolocationValue rdf:type 8158
8 nmdc:GeolocationValue wgs:lat 8158
9 nmdc:GeolocationValue wgs:long 8158
10 nmdc:GeolocationValue nmdc:has_raw_value 2931
11 nmdc:ImageValue rdf:type 7
12 nmdc:ImageValue nmdc:url 7
13 nmdc:PersonValue schema1:email 1591
14 nmdc:PersonValue rdf:type 2159
15 nmdc:PersonValue nmdc:has_raw_value 1798
16 nmdc:PersonValue nmdc:name 1750
17 nmdc:PersonValue nmdc:orcid 266
18 nmdc:PersonValue nmdc:profile_image_url 23
19 nmdc:QuantityValue rdf:type 23790
20 nmdc:QuantityValue nmdc:has_maximum_numeric_value 5238
21 nmdc:QuantityValue nmdc:has_minimum_numeric_value 5211
22 nmdc:QuantityValue nmdc:has_numeric_value 18487
23 nmdc:QuantityValue nmdc:has_raw_value 4502
24 nmdc:QuantityValue nmdc:has_unit 22375
25 nmdc:TextValue rdf:type 11885
26 nmdc:TextValue nmdc:has_raw_value 11885
27 nmdc:TimestampValue rdf:type 7673
28 nmdc:TimestampValue nmdc:has_raw_value 7673

from nmdc-schema.

turbomam avatar turbomam commented on July 24, 2024

ImageValue and TimestampValue only use a single sub-slot, too, beside asserting their type.

from nmdc-schema.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.