Skip to content

Instantly share code, notes, and snippets.

@labra
Created September 4, 2019 06:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save labra/ca44a7c652b8969ac27917d24eb0be5f to your computer and use it in GitHub Desktop.
Save labra/ca44a7c652b8969ac27917d24eb0be5f to your computer and use it in GitHub Desktop.
{
"@graph" : [ {
"@id" : "http://journal1.xyz",
"@type" : "schema:Periodical",
"hasPart" : "http://pub1.xyz",
"issn" : "issn:1234",
"name" : "A journal"
}, {
"@id" : "http://pub1.xyz",
"@type" : "schema:ScholarlyArticle"
} ],
"@context" : {
"hasPart" : {
"@id" : "http://schema.org/hasPart",
"@type" : "@id"
},
"issn" : {
"@id" : "http://schema.org/issn"
},
"name" : {
"@id" : "http://schema.org/name"
},
"schema" : "http://schema.org/",
"eli" : "http://data.europa.eu/eli/ontology#",
"void" : "http://rdfs.org/ns/void#",
"owl" : "http://www.w3.org/2002/07/owl#",
"snomed" : "http://purl.bioontology.org/ontology/SNOMEDCT/",
"xsd" : "http://www.w3.org/2001/XMLSchema#",
"skos" : "http://www.w3.org/2004/02/skos/core#",
"rdfs" : "http://www.w3.org/2000/01/rdf-schema#",
"xsd1" : "hhttp://www.w3.org/2001/XMLSchema#",
"dct" : "http://purl.org/dc/terms/",
"rdf" : "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"dctype" : "http://purl.org/dc/dcmitype/",
"rdfa" : "http://www.w3.org/ns/rdfa#",
"dcterms" : "http://purl.org/dc/terms/",
"bibo" : "http://purl.org/ontology/bibo/",
"dcat" : "http://www.w3.org/ns/dcat#",
"foaf" : "http://xmlns.com/foaf/0.1/",
"dc" : "http://purl.org/dc/elements/1.1/"
}
}
<http://journal1.xyz>@<JournalMinimum>
PREFIX schema: <http://schema.org/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
start = @<JournalMinimum>
<JournalMinimum> {
rdf:type [schema:Periodical] ;
schema:issn schema:Text
OR xsd:string
OR schema:URL
OR IRI;
schema:name xsd:Text
OR xsd:string ;
}
<JournalRecommended> {
rdf:type [schema:Periodical] ;
schema:hasPart schema:PublicationIssue
OR schema:PublicationVolume
OR schema:ScholarlyArticle * ;
schema:keywords schema:Text
OR xsd:string ? ;
schema:license schema:CreativeWork
OR schema:URL
OR IRI ? ;
schema:publisher schema:Organization
OR schema:Person * ;
schema:url schema:URL
OR IRI ? ;
}
<JournalOptional> {
rdf:type [schema:Periodical] ;
schema:about schema:Thing ? ;
schema:alternateName schema:Text
OR xsd:string * ;
schema:editor schema:Person * ;
schema:inLanguage schema:Language
OR schema:Text
OR xsd:string * ;
schema:isAccessibleForFree schema:boolean ? ;
schema:publishingPrinciples schema:CreativeWork
OR schema:URL
Or IRI ? ;
schema:sameAs schema:URL
OR IRI * ;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment