gleanerio / gleaner

Gleaner: JSON-LD and structured data on the web harvesting
https://gleaner.io
Apache License 2.0
17 stars 10 forks source link

JSONLD @graph with @id. #132

Closed valentinedwv closed 1 year ago

valentinedwv commented 1 year ago

Invalid.... This is an issue with the way the most recent facetsearch query summary where graph is no longer utilized, and I can't create one, yet. Just using the non-summary graph space does not work.

select distinct ?g ?s ?p ?o
where {graph ?g {
  ?s a <https://schema.org/Dataset> .
?s ?p ?o
     }
             }
limit 100

If the JSONLD is a graph, then we have issues with the conversion. @id end up being used a the graph ?g identifier for some reason.

attaching a zip with convsersions. wifire_jsonld_triples.zip Nearly every node has an ID (ideal document) but we have not dealt with @graph very will in finding an identifier.

           {
    "@context": {
        "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
        "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
        "schema": "https://schema.org/",
        "xsd": "http://www.w3.org/2001/XMLSchema#"
    },
    "@graph": [
        {
            "@id": "_:Nf74a12c42c1a415ea8aab2a5cd3dbc5a",
            "@type": "schema:ContactPoint",
            "schema:contactType": "customer service",
            "schema:url": "https://wifire-data.sdsc.edu"
        },

        {
            "@id": "https://wifire-data.sdsc.edu/organization/e2d487d1-6973-487c-bb20-a11744d9e1ea",
            "@type": "schema:Organization",
            "schema:contactPoint": {
                "@id": "_:Nf74a12c42c1a415ea8aab2a5cd3dbc5a"
            },
            "schema:name": "OpenTopography"
        },
        {
            "@id": "_:Ne8af266e17e24e148ef670c9ac55eb28",
            "@type": "schema:Place",
            "schema:geo": {
                "@id": "_:Nd953efa6609e44bc841ac8f3f743a0c9"
            }
        },
        {
            "@id": "https://wifire-data.sdsc.edu/dataset/3e90e86d-9c5a-4f2e-9e4e-e30d4996d429/resource/4cf25b8b-d822-4b71-ba65-5405a633b989",
            "@type": "schema:DataDownload",
            "schema:description": "NCALM Seed. PI: Riccardo Tortini, Michigan Technological University. The survey area consisted of a polygon located 115 km North of Redding, California. These data were collected to investigate the largest quaternary debris avalanche deposit off of the Mount Shasta Volcano in Northern California. These data were collected August 5, 2013.",
            "schema:encodingFormat": "laz",
            "schema:name": "CA13_Tortini Data",
            "schema:url": "https://opentopography.s3.sdsc.edu/minio/pc-bulk/CA13_Tortini/"
        },
        {
            "@id": "_:Nd953efa6609e44bc841ac8f3f743a0c9",
            "@type": "schema:GeoShape",
            "schema:polygon": "{\"type\": \"Polygon\", \"coordinates\": [[[-122.378539954738, 41.5140327937925], [-122.531213240433, 41.5140327937925], [-122.531213240433, 41.7217535566449], [-122.378539954738, 41.7217535566449], [-122.378539954738, 41.5140327937925]]]}"
        },
        {
            "@id": "_:N369fe020c17848a5b3a639dcbfc1649e",
            "@type": "schema:DataCatalog",
            "schema:description": "",
            "schema:name": "WIFIRE Commons Data Catalog",
            "schema:url": "https://wifire-data.sdsc.edu"
        },
        {
            "@id": "https://wifire-data.sdsc.edu/dataset/3e90e86d-9c5a-4f2e-9e4e-e30d4996d429",
            "@type": "schema:Dataset",
            "schema:dateModified": "2022-02-03T20:37:54.075107",
            "schema:datePublished": "2022-02-03T20:37:54.075099",
            "schema:description": "NCALM Seed. PI: Riccardo Tortini, Michigan Technological University. The survey area consisted of a polygon located 115 km North of Redding, California. These data were collected to investigate the largest quaternary debris avalanche deposit off of the Mount Shasta Volcano in Northern California. These data were collected August 5, 2013.",
            "schema:distribution": {
                "@id": "https://wifire-data.sdsc.edu/dataset/3e90e86d-9c5a-4f2e-9e4e-e30d4996d429/resource/4cf25b8b-d822-4b71-ba65-5405a633b989"
            },
            "schema:includedInDataCatalog": {
                "@id": "_:N369fe020c17848a5b3a639dcbfc1649e"
            },
            "schema:keywords": "lidar",
            "schema:license": "https://creativecommons.org/licenses/by/4.0/",
            "schema:name": "Mount Shasta, CA: Quaternary Debris Avalanche",
            "schema:publisher": {
                "@id": "https://wifire-data.sdsc.edu/organization/e2d487d1-6973-487c-bb20-a11744d9e1ea"
            },
            "schema:spatialCoverage": {
                "@id": "_:Ne8af266e17e24e148ef670c9ac55eb28"
            },
            "schema:url": "https://wifire-data.sdsc.edu/dataset/mount-shasta-ca-quaternary-debris-avalanche"
        }
    ]
}
_:bceibe6c72h8qe4trvr10 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://schema.org/ContactPoint> .
_:bceibe6c72h8qe4trvr10 <https://schema.org/contactType> "customer service" .
_:bceibe6c72h8qe4trvr10 <https://schema.org/url> "https://wifire-data.sdsc.edu" .
<https://wifire-data.sdsc.edu/organization/e2d487d1-6973-487c-bb20-a11744d9e1ea> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://schema.org/Organization> .
<https://wifire-data.sdsc.edu/organization/e2d487d1-6973-487c-bb20-a11744d9e1ea> <https://schema.org/contactPoint> _:bceibe6c72h8qe4trvr10 .
<https://wifire-data.sdsc.edu/organization/e2d487d1-6973-487c-bb20-a11744d9e1ea> <https://schema.org/name> "OpenTopography" .
_:bceibe6c72h8qe4trvr1g <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://schema.org/Place> .
_:bceibe6c72h8qe4trvr1g <https://schema.org/geo> _:bceibe6c72h8qe4trvr20 .
_:bceibe6c72h8qe4trvr20 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://schema.org/GeoShape> .
_:bceibe6c72h8qe4trvr20 <https://schema.org/polygon> "{\"type\": \"Polygon\", \"coordinates\": [[[-122.378539954738, 41.5140327937925], [-122.531213240433, 41.5140327937925], [-122.531213240433, 41.7217535566449], [-122.378539954738, 41.7217535566449], [-122.378539954738, 41.5140327937925]]]}" .
<https://wifire-data.sdsc.edu/dataset/3e90e86d-9c5a-4f2e-9e4e-e30d4996d429/resource/4cf25b8b-d822-4b71-ba65-5405a633b989> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://schema.org/DataDownload> .
<https://wifire-data.sdsc.edu/dataset/3e90e86d-9c5a-4f2e-9e4e-e30d4996d429/resource/4cf25b8b-d822-4b71-ba65-5405a633b989> <https://schema.org/description> "NCALM Seed. PI: Riccardo Tortini, Michigan Technological University. The survey area consisted of a polygon located 115 km North of Redding, California. These data were collected to investigate the largest quaternary debris avalanche deposit off of the Mount Shasta Volcano in Northern California. These data were collected August 5, 2013." .
<https://wifire-data.sdsc.edu/dataset/3e90e86d-9c5a-4f2e-9e4e-e30d4996d429/resource/4cf25b8b-d822-4b71-ba65-5405a633b989> <https://schema.org/encodingFormat> "laz" .
<https://wifire-data.sdsc.edu/dataset/3e90e86d-9c5a-4f2e-9e4e-e30d4996d429/resource/4cf25b8b-d822-4b71-ba65-5405a633b989> <https://schema.org/name> "CA13_Tortini Data" .
<https://wifire-data.sdsc.edu/dataset/3e90e86d-9c5a-4f2e-9e4e-e30d4996d429/resource/4cf25b8b-d822-4b71-ba65-5405a633b989> <https://schema.org/url> "https://opentopography.s3.sdsc.edu/minio/pc-bulk/CA13_Tortini/" .
_:bceibe6c72h8qe4trvr2g <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://schema.org/DataCatalog> .
_:bceibe6c72h8qe4trvr2g <https://schema.org/description> "" .
_:bceibe6c72h8qe4trvr2g <https://schema.org/name> "WIFIRE Commons Data Catalog" .
_:bceibe6c72h8qe4trvr2g <https://schema.org/url> "https://wifire-data.sdsc.edu" .
<https://wifire-data.sdsc.edu/dataset/3e90e86d-9c5a-4f2e-9e4e-e30d4996d429> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://schema.org/Dataset> .
<https://wifire-data.sdsc.edu/dataset/3e90e86d-9c5a-4f2e-9e4e-e30d4996d429> <https://schema.org/dateModified> "2022-02-03T20:37:54.075107" .
<https://wifire-data.sdsc.edu/dataset/3e90e86d-9c5a-4f2e-9e4e-e30d4996d429> <https://schema.org/datePublished> "2022-02-03T20:37:54.075099" .
<https://wifire-data.sdsc.edu/dataset/3e90e86d-9c5a-4f2e-9e4e-e30d4996d429> <https://schema.org/description> "NCALM Seed. PI: Riccardo Tortini, Michigan Technological University. The survey area consisted of a polygon located 115 km North of Redding, California. These data were collected to investigate the largest quaternary debris avalanche deposit off of the Mount Shasta Volcano in Northern California. These data were collected August 5, 2013." .
<https://wifire-data.sdsc.edu/dataset/3e90e86d-9c5a-4f2e-9e4e-e30d4996d429> <https://schema.org/distribution> <https://wifire-data.sdsc.edu/dataset/3e90e86d-9c5a-4f2e-9e4e-e30d4996d429/resource/4cf25b8b-d822-4b71-ba65-5405a633b989> .
<https://wifire-data.sdsc.edu/dataset/3e90e86d-9c5a-4f2e-9e4e-e30d4996d429> <https://schema.org/includedInDataCatalog> _:bceibe6c72h8qe4trvr2g .
<https://wifire-data.sdsc.edu/dataset/3e90e86d-9c5a-4f2e-9e4e-e30d4996d429> <https://schema.org/keywords> "lidar" .
<https://wifire-data.sdsc.edu/dataset/3e90e86d-9c5a-4f2e-9e4e-e30d4996d429> <https://schema.org/license> "https://creativecommons.org/licenses/by/4.0/" .
<https://wifire-data.sdsc.edu/dataset/3e90e86d-9c5a-4f2e-9e4e-e30d4996d429> <https://schema.org/name> "Mount Shasta, CA: Quaternary Debris Avalanche" .
<https://wifire-data.sdsc.edu/dataset/3e90e86d-9c5a-4f2e-9e4e-e30d4996d429> <https://schema.org/publisher> <https://wifire-data.sdsc.edu/organization/e2d487d1-6973-487c-bb20-a11744d9e1ea> .
<https://wifire-data.sdsc.edu/dataset/3e90e86d-9c5a-4f2e-9e4e-e30d4996d429> <https://schema.org/spatialCoverage> _:bceibe6c72h8qe4trvr1g .
<https://wifire-data.sdsc.edu/dataset/3e90e86d-9c5a-4f2e-9e4e-e30d4996d429> <https://schema.org/url> "https://wifire-data.sdsc.edu/dataset/mount-shasta-ca-quaternary-debris-avalanche" .