Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data entry #31

Closed
elespdn opened this issue Feb 20, 2020 · 1 comment
Closed

Data entry #31

elespdn opened this issue Feb 20, 2020 · 1 comment
Labels
question Further information is requested

Comments

@elespdn
Copy link
Contributor

elespdn commented Feb 20, 2020

  • Colleagues will use Salsah.
  • Ele will use http post requests to local and prod, especially for texts with XML values.
@elespdn elespdn added the question Further information is requested label Apr 6, 2020
@elespdn elespdn changed the title Workflow Data entry Jun 22, 2020
@elespdn elespdn assigned elespdn and unassigned elespdn Jun 22, 2020
@elespdn
Copy link
Contributor Author

elespdn commented Nov 24, 2020

@loicjaouen , do you have any experience with giving custom IRI to a resource ?

I've tried, copying what is indicated at https://docs.knora.org/03-apis/api-v2/editing-resources/#creating-a-resource (at the end of the section about Creating a resource), but the resource created is assigned a random IRI and not the one I specified ..

Example:

{
  "@id" : "http://rdfh.ch/0112/person_RodArnold",
  "knora-api:attachedToProject" : {
    "@id" : "http://rdfh.ch/projects/0112"
  },
  "@type" : "roud-oeuvres:Person",
  "roud-oeuvres:personHasGivenName" : {
    "@type" : "knora-api:TextValue",
    "knora-api:valueAsString" : "Arnold"
  },
  "roud-oeuvres:personHasFamilyName" : {
    "@type" : "knora-api:TextValue",
    "knora-api:valueAsString" : "Rod"
  },
  "roud-oeuvres:hasBirthDate" : {
    "@type" : "knora-api:DateValue",
    "knora-api:dateValueHasCalendar" : "GREGORIAN",
    "knora-api:dateValueHasEndEra" : "CE",
    "knora-api:dateValueHasStartEra" : "CE",
    "knora-api:dateValueHasStartYear" : 1896,
    "knora-api:dateValueHasEndYear" : 1896
  },
  "roud-oeuvres:hasDeathDate" : {
    "@type" : "knora-api:DateValue",
    "knora-api:dateValueHasCalendar" : "GREGORIAN",
    "knora-api:dateValueHasEndEra" : "CE",
    "knora-api:dateValueHasStartEra" : "CE",
    "knora-api:dateValueHasStartYear" : 1955,
    "knora-api:dateValueHasEndYear" : 1955
  },
  "knora-api:hasPermissions" : "CR knora-admin:ProjectAdmin|D knora-admin:ProjectMember|V knora-admin:UnknownUser",
  "rdfs:label" : "person_Rod Arnold",
  "@context" : {
    "rdf" : "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
    "knora-api" : "http://api.knora.org/ontology/knora-api/v2#",
    "rdfs" : "http://www.w3.org/2000/01/rdf-schema#",
    "xsd" : "http://www.w3.org/2001/XMLSchema#",
    "roud-oeuvres" : "http://0.0.0.0:3333/ontology/0112/roud-oeuvres/v2#"
    }
 }

It is not super important, I was just thinking that it might speed the process at times ..

@elespdn elespdn closed this as completed Oct 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant