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

Feature/rsmd-guidelines #4014

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package edu.cornell.mannlib.vitro.webapp.controller.software;

public class AuthorDTO {

public String name;

public String type;

public String identifier;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package edu.cornell.mannlib.vitro.webapp.controller.software;

public class FunderDTO {

public String name;

public String type;
}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package edu.cornell.mannlib.vitro.webapp.controller.software;

import java.util.ArrayList;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonProperty;

public class SoftwareRequestDTO {

public String internalIdentifier;

@JsonProperty(required = true)
public String name;

public String datePublished;

public List<AuthorDTO> authors = new ArrayList<>();

public List<String> fundings = new ArrayList<>();

public List<FunderDTO> funders = new ArrayList<>();

public String version;

public String description;

public List<String> identifiers = new ArrayList<>();

public String keywords;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package edu.cornell.mannlib.vitro.webapp.controller.software;

import java.util.ArrayList;
import java.util.List;

public class SoftwareResponseDTO {

public String internalIdentifier;

public String name;

public String datePublished;

public List<AuthorDTO> authors = new ArrayList<>();

public List<String> fundings = new ArrayList<>();

public List<FunderDTO> funders = new ArrayList<>();

public String version;

public String description;

public List<String> identifiers = new ArrayList<>();

public String sameAs;

public String url;

public String keywords;

public String isPartOf;

public String hasPart;
}
16 changes: 12 additions & 4 deletions home/src/main/resources/rdf/tbox/filegraph/vivo.owl
Original file line number Diff line number Diff line change
Expand Up @@ -6397,23 +6397,31 @@ To enable other Gender/Sex codes to be used, this dataproperty has range URI. Th
</owl:Class>


<!-- http://vivoweb.org/ontology/core#swhid -->

<owl:DatatypeProperty rdf:about="http://vivoweb.org/ontology/core#swhid">
<rdfs:label xml:lang="en">SWHID</rdfs:label>
<obo:IAO_0000112 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Home page for SoftWare Heritage persistent IDentifiers : https://docs.softwareheritage.org/devel/swh-model/persistent-identifiers.html</obo:IAO_0000112>
<obo:IAO_0000115 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">The SoftWare Heritage persistent IDentifier, or SWHID for short, is a PID for software artifacts. It guarantees to remain stable (persistent) over time.</obo:IAO_0000115>
<rdfs:subPropertyOf rdf:resource="http://vivoweb.org/ontology/core#identifier"/>
<rdfs:domain rdf:resource="http://purl.obolibrary.org/obo/ERO_0000071"/>
</owl:DatatypeProperty>


<!-- http://purl.obolibrary.org/obo/ERO_0000071 -->

<owl:Class rdf:about="http://purl.obolibrary.org/obo/ERO_0000071">
<rdfs:label xml:lang="en">Software</rdfs:label>
<rdfs:subClassOf rdf:resource="http://purl.obolibrary.org/obo/BFO_0000040"/>
<rdfs:subClassOf rdf:resource="http://purl.obolibrary.org/obo/IAO_0000030"/>
<obo:IAO_0000115 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">A general term primarily used for digitally stored data such as computer programs and other kinds of information read and written by computers.</obo:IAO_0000115>
<rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string">IAO is a planned specification, in SWO is an Information artifact. In eagle-i, we have a need to collect material instances and is it thus currently classified as a material entity.</rdfs:comment>
<obo:IAO_0000112 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Microsoft Word is commonly used word processing software.</obo:IAO_0000112>
<rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Aligned with SWO which also defines software and other types of services as subtypes of Information content entity.</rdfs:comment> <obo:IAO_0000112 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Microsoft Word is commonly used word processing software.</obo:IAO_0000112>
<obo:IAO_0000117 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">PERSON: Melissa Haendel</obo:IAO_0000117>
<obo:IAO_0000119 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">http://en.wikipedia.org/wiki/Computer_software</obo:IAO_0000119>
<obo:IAO_0000111 rdf:datatype="http://www.w3.org/2001/XMLSchema#string">software</obo:IAO_0000111>
<obo:IAO_0000114 rdf:resource="http://purl.obolibrary.org/obo/IAO_0000120"/>
</owl:Class>



<!-- http://purl.obolibrary.org/obo/ERO_0000224 -->

<owl:Class rdf:about="http://purl.obolibrary.org/obo/ERO_0000224">
Expand Down
12 changes: 12 additions & 0 deletions home/src/main/resources/rdf/tbox/firsttime/vitroAnnotations.n3
Original file line number Diff line number Diff line change
Expand Up @@ -1748,6 +1748,18 @@ bibo:doi
vitro:selectFromExistingAnnot
"true"^^xsd:boolean .

vivo:swhid
vitro:displayLimitAnnot
"1"^^xsd:int ;
vitro:displayRankAnnot
"5"^^xsd:int ;
vitro:hiddenFromDisplayBelowRoleLevelAnnot
<http://vitro.mannlib.cornell.edu/ns/vitro/role#public> ;
vitro:hiddenFromPublishBelowRoleLevelAnnot
<http://vitro.mannlib.cornell.edu/ns/vitro/role#public> ;
vitro:inPropertyGroupAnnot
<http://vivoweb.org/ontology#vitroPropertyGroupidentifiers> .

obo:ERO_0000070 ## inverse of ERO_0000031
# vitro:displayLimitAnnot
# "2"^^xsd:int ;
Expand Down
Loading