Project:SPARQL/examples: Difference between revisions

From Beyond Notability
m
Line 2,707: Line 2,707:


<sparql tryit="1">
<sparql tryit="1">
# fishing for dates for FSAs
#title:fishing for dates for FSAs
# union query to get [hopefully] every date associated with women FSAs including main dates and qualifier dates, with date precision
# union query to get [hopefully] every date associated with women FSAs including main dates and qualifier dates, with date precision


Line 2,741: Line 2,741:
    
    
   # get dates detail via ?s and psv
   # get dates detail via ?s and psv
   # TODO: I think this gets edtf dates in simplified std wiki date format. could handle them separately to keep the extra info.  
   # gets edtf dates in simplified std wiki date format. could handle them separately to keep the extra info.  
   # https://github.com/ProfessionalWiki/WikibaseEdtf
   # https://github.com/ProfessionalWiki/WikibaseEdtf
    
    
Line 2,766: Line 2,766:
    
    
       # get stuff about ?p via ps. .  
       # get stuff about ?p via ps. .  
       # pdv was called ?qual but it isn't a qual; it's the direct value (usually item) for the property, things like annual meeting, girton college. .
       # pdv is the direct value (usually item), things like annual meeting, girton college.
       ?s ?ps ?pdv.
       ?s ?ps ?pdv.
    
    
3,427

edits