Dataset 10027

From Data-gov Wiki

Jump to: navigation, search
Metadata
  • Title: NHIS - Adult Tobacco Use Information 2005
  • Publisher: Centers for Disease Control and Prevention
  • Description: This guide provides links to National Health Interview Survey (NHIS) tobacco information, including questionnaires, documentation, data file information, SAS/SPSS/Stata input statements and data sets for each data year in which NHIS tobacco use questions were asked.
  • Keywords: Health
  • Homepage: http://www.cdc.gov/nchs/nhis/tobacco/tobacco_guide.htm
  • Source:
  • Parent Dataset:
RDF data
Links
  • Demos:
NOTES: This dataset covers data with following features: region.This dataset covers temporal data from 2005 to 2005.
Infobox (Other Government Dataset)
  • name: NHIS - Adult Tobacco Use Information 2005



Contents

Overview

related pages

National Institutes of Health



How many properties are used?

execute query

prefix rdf:       <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
prefix rdfs:      <http://www.w3.org/2000/01/rdf-schema#> 
prefix foaf:      <http://xmlns.com/foaf/0.1/> 

prefix twdg:      <http://data-gov.tw.rpi.edu/vocab/>

prefix hints_ng:  <http://data-gov.tw.rpi.edu/vocab/Dataset_10026>
prefix hints:     <http://data-gov.tw.rpi.edu/vocab/p/10026/>

prefix nhis_ng:   <http://data-gov.tw.rpi.edu/vocab/Dataset_10027>
prefix nhis:      <http://data-gov.tw.rpi.edu/vocab/p/10027/>

select (count(distinct ?p) as ?count)
where {
  graph nhis_ng: {
    ?s ?p ?o .
  }
}
"39"^^<http://www.w3.org/2001/XMLSchema#integer>

What properties are used?

execute query

prefix rdf:       <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
prefix rdfs:      <http://www.w3.org/2000/01/rdf-schema#> 
prefix foaf:      <http://xmlns.com/foaf/0.1/> 

prefix twdg:      <http://data-gov.tw.rpi.edu/vocab/>

prefix hints_ng:  <http://data-gov.tw.rpi.edu/vocab/Dataset_10026>
prefix hints:     <http://data-gov.tw.rpi.edu/vocab/p/10026/>

prefix nhis_ng:   <http://data-gov.tw.rpi.edu/vocab/Dataset_10027>
prefix nhis:      <http://data-gov.tw.rpi.edu/vocab/p/10027/>

select distinct ?p
where {
  graph nhis_ng: {
    ?s ?p ?o .
  }
} order by ?p

What dataset-specific properties are used?

Does not work.

execute query

prefix rdf:       <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
prefix rdfs:      <http://www.w3.org/2000/01/rdf-schema#> 
prefix foaf:      <http://xmlns.com/foaf/0.1/> 

prefix twdg:      <http://data-gov.tw.rpi.edu/vocab/>

prefix hints_ng:  <http://data-gov.tw.rpi.edu/vocab/Dataset_10026>
prefix hints:     <http://data-gov.tw.rpi.edu/vocab/p/10026/>

prefix nhis_ng:   <http://data-gov.tw.rpi.edu/vocab/Dataset_10027>
prefix nhis:      <http://data-gov.tw.rpi.edu/vocab/p/10027/>

select distinct ?p
where {
  graph nhis_ng: {
    ?s ?p ?o .
    filter(regex(?p,"^http://data-gov.tw.rpi.edu/vocab/p/10027"))
  }
} order by ?p

How are properties described?

execute query

prefix rdf:       <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
prefix rdfs:      <http://www.w3.org/2000/01/rdf-schema#> 
prefix foaf:      <http://xmlns.com/foaf/0.1/> 

prefix twdg:      <http://data-gov.tw.rpi.edu/vocab/>

prefix hints_ng:  <http://data-gov.tw.rpi.edu/vocab/Dataset_10026>
prefix hints:     <http://data-gov.tw.rpi.edu/vocab/p/10026/>

prefix nhis_ng:   <http://data-gov.tw.rpi.edu/vocab/Dataset_10027>
prefix nhis:      <http://data-gov.tw.rpi.edu/vocab/p/10027/>

select distinct ?pp
where {
  graph nhis_ng: {
    ?s ?p ?o .
    ?p ?pp ?oo .
  }
}
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://www.w3.org/2000/01/rdf-schema#label>

Property types and labels?

prefix rdf:       <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
prefix rdfs:      <http://www.w3.org/2000/01/rdf-schema#> 
prefix foaf:      <http://xmlns.com/foaf/0.1/> 

prefix twdg:      <http://data-gov.tw.rpi.edu/vocab/>

prefix hints_ng:  <http://data-gov.tw.rpi.edu/vocab/Dataset_10026>
prefix hints:     <http://data-gov.tw.rpi.edu/vocab/p/10026/>

prefix nhis_ng:   <http://data-gov.tw.rpi.edu/vocab/Dataset_10027>
prefix nhis:      <http://data-gov.tw.rpi.edu/vocab/p/10027/>

select distinct ?p ?t ?l
where {
  graph nhis_ng: {
    ?s ?p ?o .
    optional {?p rdf:type   ?t}
    optional {?p rdfs:label ?l}
  }
}
<http://data-gov.tw.rpi.edu/vocab/p/10026/hs02bnervous>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Property>
"HS-02b. During the past 30 days, how often did you feel nervous?"

<http://data-gov.tw.rpi.edu/vocab/p/10026/tu01smoke100>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Property>
"TU-01. Have you smoked at least 100 cigarettes in your entire life?"

...

How many unique values for property nhis:hhx?

execute query

prefix rdf:       <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
prefix rdfs:      <http://www.w3.org/2000/01/rdf-schema#> 
prefix foaf:      <http://xmlns.com/foaf/0.1/> 

prefix twdg:      <http://data-gov.tw.rpi.edu/vocab/>

prefix hints_ng:  <http://data-gov.tw.rpi.edu/vocab/Dataset_10026>
prefix hints:     <http://data-gov.tw.rpi.edu/vocab/p/10026/>

prefix nhis_ng:   <http://data-gov.tw.rpi.edu/vocab/Dataset_10027>
prefix nhis:      <http://data-gov.tw.rpi.edu/vocab/p/10027/>

select (count(distinct ?o) as ?count)
where {
  graph nhis_ng: {
    ?s nhis:hhx ?o .
  }
}
"30854"^^<http://www.w3.org/2001/XMLSchema#integer>

How many unique values for property nhis:stratum?

execute query

prefix rdf:       <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
prefix rdfs:      <http://www.w3.org/2000/01/rdf-schema#> 
prefix foaf:      <http://xmlns.com/foaf/0.1/> 

prefix twdg:      <http://data-gov.tw.rpi.edu/vocab/>

prefix hints_ng:  <http://data-gov.tw.rpi.edu/vocab/Dataset_10026>
prefix hints:     <http://data-gov.tw.rpi.edu/vocab/p/10026/>

prefix nhis_ng:   <http://data-gov.tw.rpi.edu/vocab/Dataset_10027>
prefix nhis:      <http://data-gov.tw.rpi.edu/vocab/p/10027/>

select (count(distinct ?o) as ?count)
where {
  graph nhis_ng: {
    ?s nhis:stratum ?o .
  }
}
"339"^^<http://www.w3.org/2001/XMLSchema#integer>

What are the unique values for property nhis:stratum

execute query

prefix rdf:       <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
prefix rdfs:      <http://www.w3.org/2000/01/rdf-schema#> 
prefix foaf:      <http://xmlns.com/foaf/0.1/> 

prefix twdg:      <http://data-gov.tw.rpi.edu/vocab/>

prefix hints_ng:  <http://data-gov.tw.rpi.edu/vocab/Dataset_10026>
prefix hints:     <http://data-gov.tw.rpi.edu/vocab/p/10026/>

prefix nhis_ng:   <http://data-gov.tw.rpi.edu/vocab/Dataset_10027>
prefix nhis:      <http://data-gov.tw.rpi.edu/vocab/p/10027/>

select distinct ?o
where {
  graph nhis_ng: {
    ?s nhis:stratum ?o .
  }
} order by ?o

How many entries were in the table?

execute query

prefix rdf:       <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
prefix rdfs:      <http://www.w3.org/2000/01/rdf-schema#> 
prefix foaf:      <http://xmlns.com/foaf/0.1/> 

prefix twdg:      <http://data-gov.tw.rpi.edu/vocab/>

prefix hints_ng:  <http://data-gov.tw.rpi.edu/vocab/Dataset_10026>
prefix hints:     <http://data-gov.tw.rpi.edu/vocab/p/10026/>

prefix nhis_ng:   <http://data-gov.tw.rpi.edu/vocab/Dataset_10027>
prefix nhis:      <http://data-gov.tw.rpi.edu/vocab/p/10027/>

select (count(distinct ?s) as ?count)
where {
  graph nhis_ng: {
    ?s nhis:srvy_yr ?o .
  }
}
"31428"^^<http://www.w3.org/2001/XMLSchema#integer>

Ordered by .doc documentation

Scale:

# typical
ENUM <http://data-gov.tw.rpi.edu/vocab/p/10026/spage>
ENUM <http://data-gov.tw.rpi.edu/vocab/p/10026/spgender>
# behaviors
ENUM <http://data-gov.tw.rpi.edu/vocab/p/10026/tu01smoke100>
ENUM <http://data-gov.tw.rpi.edu/vocab/p/10026/tu02smokenow>
# feelings
ENUM <http://data-gov.tw.rpi.edu/vocab/p/10026/hs02asad>
ENUM <http://data-gov.tw.rpi.edu/vocab/p/10026/hs02bnervous>
ENUM <http://data-gov.tw.rpi.edu/vocab/p/10026/hs02crestless>
ENUM <http://data-gov.tw.rpi.edu/vocab/p/10026/hs02dhopeless>
ENUM <http://data-gov.tw.rpi.edu/vocab/p/10026/hs02eeffort>
ENUM <http://data-gov.tw.rpi.edu/vocab/p/10026/hs02fworthless>
# typical
ENUM <http://data-gov.tw.rpi.edu/vocab/p/10026/dm02maritalstatus>
ENUM <http://data-gov.tw.rpi.edu/vocab/p/10026/dm03education>
ENUM <http://data-gov.tw.rpi.edu/vocab/p/10026/dm04hispanic>
# income props:
ENUM <http://data-gov.tw.rpi.edu/vocab/p/10026/dm14income>
ENUM <http://data-gov.tw.rpi.edu/vocab/p/10026/dm14aincome25thousand>
ENUM <http://data-gov.tw.rpi.edu/vocab/p/10026/dm14bincome20thousand>
ENUM <http://data-gov.tw.rpi.edu/vocab/p/10026/dm14cincome15thousand>
ENUM <http://data-gov.tw.rpi.edu/vocab/p/10026/dm14dincome10thousand>
ENUM <http://data-gov.tw.rpi.edu/vocab/p/10026/dm14eincome35thousand>
ENUM <http://data-gov.tw.rpi.edu/vocab/p/10026/dm14fincome50thousand>
ENUM <http://data-gov.tw.rpi.edu/vocab/p/10026/dm14gincome75thousand>
ENUM <http://data-gov.tw.rpi.edu/vocab/p/10026/dm14hincome100thousand>
ENUM <http://data-gov.tw.rpi.edu/vocab/p/10026/dm14iincomeover100thousand>
ENUM <http://data-gov.tw.rpi.edu/vocab/p/10026/dm14jincomeover200thousand>
# typical
ENUM <http://data-gov.tw.rpi.edu/vocab/p/10026/raceethn>
# composite scores
ENUM <http://data-gov.tw.rpi.edu/vocab/p/10026/distressed>
ENUM <http://data-gov.tw.rpi.edu/vocab/p/10026/distressscore>
# TWO scalars here (see below)
# full sample weight
     <http://data-gov.tw.rpi.edu/vocab/p/10026/fwgt>

Nominal:

# typical
     <http://data-gov.tw.rpi.edu/vocab/p/10026/state>
ENUM <http://data-gov.tw.rpi.edu/vocab/p/10026/region>

Notes on process

"SPAge" (in csv) to

<http://data-gov.tw.rpi.edu/vocab/p/10026/spage>
  hints:questionLabel "-->GA-0A. May I please have your age?";
  tw:originalLabel "SPAge";
  hints:position 1;
  hints:measurementLevel hints:scale;
.
hints:questionLabel rdfs:subPropertyOf rdfs:label .

so can:

order by hints:measurementLevel, hints:position

setenvs

export twdg=http://data-gov.tw.rpi.edu/vocab/
export nhis=http://data-gov.tw.rpi.edu/vocab/Dataset_10027/p/
export hints=http://data-gov.tw.rpi.edu/vocab/Dataset_10026/p/
Facts about Dataset 10027RDF feed
Dc:identifierdgtwc10027  +
Dcterms:created1 August 2008  +
Dcterms:descriptionThis guide provides links to National Heal This guide provides links to National Health Interview Survey (NHIS) tobacco information, including questionnaires, documentation, data file information, SAS/SPSS/Stata input statements and data sets for each data year in which NHIS tobacco use questions were asked. ich NHIS tobacco use questions were asked.
Dcterms:modified2010-5-28
Dcterms:publisherCenters for Disease Control and Prevention  +
Dcterms:subjecthealth  +
DescribesNational Health Interview Survey 2005  +
Dgtwc:complete datahttp://data-gov.tw.rpi.edu/raw2/10027/data-10027.nt.gz  +
Dgtwc:link dataHttp://data-gov.tw.rpi.edu/raw2/10027/link00001.rdf  +
Dgtwc:linked data entry pointHttp://data-gov.tw.rpi.edu/vocab/Dataset 10027  +
Dgtwc:number of entries31,428  +
Dgtwc:number of properties22  +
Dgtwc:number of triples704,715  +
Dgtwc:uses property10027/agecat  +, 10027/psu  +, 10027/mracbpi2  +, 10027/smkstat2  +, 10027/r maritl  +, 10027/hhx  +, 10027/srvy yr  +, 10027/mracrpi2  +, 10027/wtia sa  +, 10027/region  +, 10027/sex  +, 10027/age p  +, 10027/stratum  +, 10027/fmx  +, 10027/crntsmk  +, 10027/smknow  +, 10027/hispan i  +, 10027/fpx  +, 10027/smkev  +, 10027/wtfa sa  +, 10027/rectype  +, and 10027/racerpi2  +
Dgtwc id10027  +
Foaf:homepagehttp://www.cdc.gov/nchs/nhis/tobacco/tobacco_guide.htm  +
Foaf:nameNHIS - Adult Tobacco Use Information 2005
Has end year2005  +
Has featureRegion  +
Has start year2005  +
Rdfs:seeAlsoHttp://data-gov.tw.rpi.edu/raw2/10027/index.rdf  +
Skos:altLabelNHIS - Adult Tobacco Use Information 2005  +, nhis - adult tobacco use information 2005  +, and NHIS - ADULT TOBACCO USE INFORMATION 2005  +
Personal tools
internal pages