Skip to content

Commit

Permalink
Merge pull request #222 from arXiv/feature/ARXIVNG-1448
Browse files Browse the repository at this point in the history
ARXIVNG-1448 support for primary, ARXIVNG-1447 secondary categories
  • Loading branch information
erickpeirson authored Dec 20, 2018
2 parents d2a1499 + 7bdf1f6 commit 34a0358
Show file tree
Hide file tree
Showing 20 changed files with 757 additions and 150 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Defines the runtime for the arXiv search service, which provides the main
# UIs (and, eventually, APIs) for search.

FROM arxiv/base:0.12.1rc2
FROM arxiv/base:0.12.1

WORKDIR /opt/arxiv

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile-agent
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# article metadata becomes available. Subscribes to a Kinesis stream for
# notifications about new metadata.

FROM arxiv/search
FROM arxiv/search:0.5.1

WORKDIR /opt/arxiv

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile-api
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Defines the runtime for the arXiv search API, which provides a metadata
# query API backed by Elasticsearch.

FROM arxiv/base:0.12.1rc2
FROM arxiv/base:0.12.1

WORKDIR /opt/arxiv

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile-index
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#
# See also ELASTICSEARCH_* and METADATA_ENDPOINT parameters, below.

FROM arxiv/base:0.12.1rc2
FROM arxiv/base:0.12.1

# Add Python consumer and configuration.
ADD requirements/prod.txt /opt/arxiv/requirements.txt
Expand Down
4 changes: 2 additions & 2 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ verify_ssl = true
name = "pypi"

[packages]
arxiv-base = "==0.12.1rc2"
arxiv-auth = "==0.1.0rc14"
arxiv-auth = "==0.2.1"
arxiv-base = "==0.12.1"
boto = "==2.48.0"
"boto3" = "==1.6.6"
botocore = "==1.9.6"
Expand Down
10 changes: 5 additions & 5 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions schema/resources/Classification.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"title": "Classification",
"type": "object",
"properties": {
"archive": {"$ref": "./ClassificationTerm.json"},
"group": {"$ref": "./ClassificationTerm.json"},
"category": {"$ref": "./ClassificationTerm.json"}
}
}
13 changes: 13 additions & 0 deletions schema/resources/ClassificationTerm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"title": "ClassificationTerm",
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": ["id", "name"]
}
50 changes: 2 additions & 48 deletions schema/resources/Document.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@
"uniqueItems": true
},
"primary_classification": {
"$ref": "./Document.json#/definitions/classification"
"$ref": "./Classification.json"
},
"secondary_classification": {
"type": "array",
"items": {"$ref": "./Document.json#/definitions/classification"}
"items": {"$ref": "./Classification.json"}
},
"report_num": {
"type": "string"
Expand Down Expand Up @@ -188,51 +188,5 @@
"href",
"canonical"
]
},
"definitions": {
"category": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": ["id", "name"]
},
"archive": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": ["id", "name"]
},
"group": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": ["id", "name"]
},
"classification": {
"type": "object",
"properties": {
"archive": {"$ref": "#/definitions/archive"},
"group": {"$ref": "#/definitions/group"},
"category": {"$ref": "#/definitions/category"}
}
}
}
}
50 changes: 2 additions & 48 deletions schema/resources/DocumentMetadata.json
Original file line number Diff line number Diff line change
@@ -1,52 +1,6 @@
{
"title": "DocumentMetadata",
"description": "Schema for arXiv document metadata provided by the docmeta endpoint.",
"definitions": {
"category": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": ["id", "name"]
},
"archive": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": ["id", "name"]
},
"group": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": ["id", "name"]
},
"classification": {
"type": "object",
"properties": {
"archive": {"$ref": "#/definitions/archive"},
"group": {"$ref": "#/definitions/group"},
"category": {"$ref": "#/definitions/category"}
}
}
},
"type": "object",
"properties": {
"abs_categories": {
Expand Down Expand Up @@ -216,11 +170,11 @@
"type": "string"
},
"primary_classification": {
"$ref": "#/definitions/classification"
"$ref": "./Classification.json"
},
"secondary_classification": {
"type": "array",
"items": {"$ref": "#/definitions/classification"}
"items": {"$ref": "./Classification.json"}
},
"proxy": {
"type": "string"
Expand Down
17 changes: 16 additions & 1 deletion schema/resources/DocumentSet.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,29 @@
"total": {
"description": "Total number of documents that respond to this query.",
"type": "integer"
},
"query": {
"description": "Query parameters interpreted from the request.",
"type": "array",
"items": {
"type": "object",
"properties": {
"parameter": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
}
}
},
"results": {
"type": "array",
"items": {
"type": "object",
"$ref": "Document.json#Document"
"$ref": "Document.json"
}
}
}
Expand Down
Loading

0 comments on commit 34a0358

Please sign in to comment.