lodacデータを眺めてみた

Fumihiro Kato edited this page Jul 16, 2015 · 1 revision
  • 下記SPAQRLクエリを投げて,各クラス間データを取ってみました
  • 対象は lodac:Work, lodac:WorkReference, lodac:LODACReference, foaf:Person, lodac:PersonReference, foaf:Organization, lodac:OrganizationReference
  • しかし foaf:Organization とかはレスポンスが帰ってこず
PREFIX lodacid: 
PREFIX lodac: 
PREFIX rdf: 
PREFIX foaf: 

SELECT DISTINCT ?p ?type
WHERE {
  ?s a lodac:Work .
  ?s ?p ?o .
  ?o rdf:type ?type .
}
LIMIT 100

==== S,P,Oそれぞれをノードにしたグラフ ====

digraph sample {
"crm:P55_current_location" -> "foaf:Group";
"crm:P55_current_location" -> "foaf:Organization";
"crm:P55_current_location" [shape=box];
"crm:P55_has_current_location" -> "foaf:Group";
"crm:P55_has_current_location" -> "foaf:Organization";
"crm:P55_has_current_location" -> "lodac:GroupReference";
"crm:P55_has_current_location" -> "lodac:OrganizationReference";
"crm:P55_has_current_location" [shape=box];
"dc:creator" -> "foaf:Group";
"dc:creator" -> "foaf:Organization";
"dc:creator" -> "foaf:Person";
"dc:creator" -> "lodac:BibliographicResourceReference";
"dc:creator" -> "lodac:GroupReference";
"dc:creator" -> "lodac:PersonReference";
"dc:creator" [shape=box];
"dc:isReferencedBy" -> "foaf:Organization";
"dc:isReferencedBy" -> "lodac:BibliographicResourceReference";
"dc:isReferencedBy" -> "lodac:Nengo";
"dc:isReferencedBy" -> "lodac:OrganizationReference";
"dc:isReferencedBy" -> "lodac:Work";
"dc:isReferencedBy" -> "lodac:WorkReference";
"dc:isReferencedBy" [shape=box];
"dc:references" -> "geo:SpatialThing";
"dc:references" -> "lodac:BibliographicResourceReference";
"dc:references" -> "lodac:LODACReference";
"dc:references" -> "lodac:PeriodReference";
"dc:references" -> "lodac:PersonReference";
"dc:references" -> "lodac:WorkReference";
"dc:references" [shape=box];
"foaf:Group";
"foaf:Organization";
"foaf:Person" -> "dc:references";
"foaf:Person" -> "lodac:creates";
"foaf:Person" -> "rdf:type";
"foaf:Person";
"foaf:nick" [shape=box];
"geo:SpatialThing";
"lodac:BibliographicResourceReference";
"lodac:GroupReference";
"lodac:LODACReference" -> "dc:isReferencedBy";
"lodac:LODACReference" -> "dc:references";
"lodac:LODACReference" -> "lodac:nextPeriod";
"lodac:LODACReference" -> "lodac:prevPeriod";
"lodac:LODACReference" -> "rdf:type";
"lodac:LODACReference" -> "skos:closeMatch";
"lodac:LODACReference";
"lodac:Name";
"lodac:Nengo";
"lodac:NengoReference";
"lodac:OrganizationReference";
"lodac:PeriodReference";
"lodac:PersonReference";
"lodac:Ward";
"lodac:Work" -> "crm:P55_has_current_location";
"lodac:Work" -> "dc:creator";
"lodac:Work" -> "dc:references";
"lodac:Work" -> "lodac:icctv";
"lodac:Work" -> "rdf:type";
"lodac:Work";
"lodac:WorkReference" -> "crm:P55_current_location";
"lodac:WorkReference" -> "crm:P55_has_current_location";
"lodac:WorkReference" -> "dc:creator";
"lodac:WorkReference" -> "dc:isReferencedBy";
"lodac:WorkReference" -> "dc:references";
"lodac:WorkReference" -> "rdf:type";
"lodac:WorkReference" -> "rdfs:seeAlso";
"lodac:WorkReference" -> "skos:altLabel";
"lodac:WorkReference";
"lodac:creates" -> "lodac:Work";
"lodac:creates" [shape=box];
"lodac:icctv" -> "lodac:Ward";
"lodac:icctv" [shape=box];
"lodac:nextPeriod" -> "lodac:LODACReference";
"lodac:nextPeriod" -> "lodac:PeriodReference";
"lodac:nextPeriod" [shape=box];
"lodac:prevPeriod" -> "lodac:LODACReference";
"lodac:prevPeriod" -> "lodac:PeriodReference";
"lodac:prevPeriod" [shape=box];
"rdf:type" -> "rdfs:Class";
"rdf:type" [shape=box];
"rdfs:Class";
"rdfs:seeAlso" -> "lodac:GroupReference";
"rdfs:seeAlso" -> "lodac:OrganizationReference";
"rdfs:seeAlso" -> "lodac:PersonReference";
"rdfs:seeAlso" -> "lodac:WorkReference";
"rdfs:seeAlso" [shape=box];
"skos:altLabel" -> "lodac:Name";
"skos:altLabel" [shape=box];
"skos:closeMatch" -> "lodac:LODACReference";
"skos:closeMatch" -> "lodac:NengoReference";
"skos:closeMatch" [shape=box];
}

==== S,Oをそれぞれノード,Pをエッジラベルにしたグラフ ====

  • htps://docs.google.com/leaf?id=0B9yGsgp6RwUmZmUwNTYwZTItM2Y0ZS00MzYzLWE2MDktNjE2MmQ0MTlmM2Yz&hl=ja
digraph sample {
"foaf:Person" -> "rdfs:Class" [label = "rdf:type"];
"foaf:Person" -> "lodac:PersonReference" [label = "dc:references"];
"foaf:Person" -> "lodac:Work" [label = "lodac:creates"];
"lodac:LODACReference" -> "rdfs:Class" [label = "rdf:type"];
"lodac:LODACReference" -> "lodac:Work" [label = "dc:isReferencedBy"];
"lodac:LODACReference" -> "lodac:Nengo" [label = "dc:isReferencedBy"];
"lodac:LODACReference" -> "lodac:LODACReference" [label = "lodac:nextPeriod"];
"lodac:LODACReference" -> "lodac:PeriodReference" [label = "lodac:nextPeriod"];
"lodac:LODACReference" -> "lodac:LODACReference" [label = "lodac:prevPeriod"];
"lodac:LODACReference" -> "lodac:PeriodReference" [label = "lodac:prevPeriod"];
"lodac:LODACReference" -> "lodac:LODACReference" [label = "dc:references"];
"lodac:LODACReference" -> "lodac:PeriodReference" [label = "dc:references"];
"lodac:LODACReference" -> "lodac:LODACReference" [label = "skos:closeMatch"];
"lodac:LODACReference" -> "lodac:NengoReference" [label = "skos:closeMatch"];
"lodac:PersonReference" -> "rdfs:Class" [label = "rdf:type"];
"lodac:PersonReference" -> "foaf:Person" [label = "dc:isReferencedBy"];
"lodac:PersonReference" -> "lodac:WorkReference" [label = "lodac:creates"];
"lodac:PersonReference" -> "lodac:Name" [label = "foaf:nick"];
"lodac:PersonReference" -> "lodac:BibliographicResourceReference" [label = "lodac:creates"];
"lodac:Work" -> "rdfs:Class" [label = "rdf:type"];
"lodac:Work" -> "lodac:WorkReference" [label = "dc:references"];
"lodac:Work" -> "lodac:LODACReference" [label = "dc:references"];
"lodac:Work" -> "foaf:Person" [label = "dc:creator"];
"lodac:Work" -> "foaf:Organization" [label = "crm:P55_has_current_location"];
"lodac:Work" -> "foaf:Group" [label = "crm:P55_has_current_location"];
"lodac:Work" -> "foaf:Group" [label = "dc:creator"];
"lodac:Work" -> "lodac:BibliographicResourceReference" [label = "dc:references"];
"lodac:Work" -> "foaf:Organization" [label = "dc:creator"];
"lodac:Work" -> "geo:SpatialThing" [label = "dc:references"];
"lodac:Work" -> "lodac:Ward" [label = "lodac:icctv"];
"lodac:WorkReference" -> "rdfs:Class" [label = "rdf:type"];
"lodac:WorkReference" -> "lodac:Work" [label = "dc:isReferencedBy"];
"lodac:WorkReference" -> "lodac:Name" [label = "skos:altLabel"];
"lodac:WorkReference" -> "lodac:WorkReference" [label = "rdfs:seeAlso"];
"lodac:WorkReference" -> "lodac:BibliographicResourceReference" [label = "dc:isReferencedBy"];
"lodac:WorkReference" -> "lodac:OrganizationReference" [label = "crm:P55_has_current_location"];
"lodac:WorkReference" -> "lodac:GroupReference" [label = "crm:P55_has_current_location"];
"lodac:WorkReference" -> "lodac:PersonReference" [label = "dc:creator"];
"lodac:WorkReference" -> "lodac:WorkReference" [label = "dc:references"];
"lodac:WorkReference" -> "lodac:WorkReference" [label = "dc:isReferencedBy"];
"lodac:WorkReference" -> "lodac:BibliographicResourceReference" [label = "dc:references"];
"lodac:WorkReference" -> "lodac:PersonReference" [label = "rdfs:seeAlso"];
"lodac:WorkReference" -> "lodac:GroupReference" [label = "rdfs:seeAlso"];
"lodac:WorkReference" -> "lodac:GroupReference" [label = "dc:creator"];
"lodac:WorkReference" -> "foaf:Organization" [label = "dc:isReferencedBy"];
"lodac:WorkReference" -> "lodac:OrganizationReference" [label = "dc:isReferencedBy"];
"lodac:WorkReference" -> "lodac:OrganizationReference" [label = "rdfs:seeAlso"];
"lodac:WorkReference" -> "lodac:BibliographicResourceReference" [label = "dc:creator"];
"lodac:WorkReference" -> "foaf:Organization" [label = "crm:P55_current_location"];
"lodac:WorkReference" -> "foaf:Group" [label = "crm:P55_current_location"];
}