-
Notifications
You must be signed in to change notification settings - Fork 163
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
GH-1755 Revert #4580
GH-1755 Revert #4580
Changes from all commits
a6df529
74d08d4
efdb3f1
9782ae5
a9d7921
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,53 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2022 Eclipse RDF4J contributors. | ||
* | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Distribution License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/org/documents/edl-v10.php. | ||
* | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*******************************************************************************/ | ||
package org.eclipse.rdf4j.rio.jsonld; | ||
|
||
/** | ||
* Specifies constants to identify various modes that are relevant to JSONLD documents. | ||
* | ||
* @author Peter Ansell | ||
* @see <a href="http://json-ld.org/spec/latest/json-ld-api/#features">JSONLD Features</a> | ||
* | ||
* @since 4.3.0 | ||
*/ | ||
public enum JSONLDMode { | ||
|
||
EXPAND("Expansion", "http://json-ld.org/spec/latest/json-ld-api/index.html#expansion"), | ||
|
||
COMPACT("Compaction", "http://json-ld.org/spec/latest/json-ld-api/index.html#compaction"), | ||
|
||
FLATTEN("Flattening", "http://json-ld.org/spec/latest/json-ld-api/index.html#flattening"), | ||
|
||
; | ||
|
||
private final String label; | ||
|
||
private final String reference; | ||
|
||
JSONLDMode(String label, String reference) { | ||
this.label = label; | ||
this.reference = reference; | ||
} | ||
|
||
/** | ||
* @return Returns the label. | ||
*/ | ||
public String getLabel() { | ||
return label; | ||
} | ||
|
||
/** | ||
* @return Returns the reference URL for the given mode. | ||
*/ | ||
public String getReference() { | ||
return reference; | ||
} | ||
} | ||
///******************************************************************************* | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe delete this file instead? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Makes it much easier to revert my revert when I can simply uncomment the file. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok |
||
// * Copyright (c) 2022 Eclipse RDF4J contributors. | ||
// * | ||
// * All rights reserved. This program and the accompanying materials | ||
// * are made available under the terms of the Eclipse Distribution License v1.0 | ||
// * which accompanies this distribution, and is available at | ||
// * http://www.eclipse.org/org/documents/edl-v10.php. | ||
// * | ||
// * SPDX-License-Identifier: BSD-3-Clause | ||
// *******************************************************************************/ | ||
//package org.eclipse.rdf4j.rio.jsonld; | ||
// | ||
///** | ||
// * Specifies constants to identify various modes that are relevant to JSONLD documents. | ||
// * | ||
// * @author Peter Ansell | ||
// * @see <a href="http://json-ld.org/spec/latest/json-ld-api/#features">JSONLD Features</a> | ||
// * | ||
// * @since 4.3.0 | ||
// */ | ||
//public enum JSONLDMode { | ||
// | ||
// EXPAND("Expansion", "http://json-ld.org/spec/latest/json-ld-api/index.html#expansion"), | ||
// | ||
// COMPACT("Compaction", "http://json-ld.org/spec/latest/json-ld-api/index.html#compaction"), | ||
// | ||
// FLATTEN("Flattening", "http://json-ld.org/spec/latest/json-ld-api/index.html#flattening"), | ||
// | ||
// ; | ||
// | ||
// private final String label; | ||
// | ||
// private final String reference; | ||
// | ||
// JSONLDMode(String label, String reference) { | ||
// this.label = label; | ||
// this.reference = reference; | ||
// } | ||
// | ||
// /** | ||
// * @return Returns the label. | ||
// */ | ||
// public String getLabel() { | ||
// return label; | ||
// } | ||
// | ||
// /** | ||
// * @return Returns the reference URL for the given mode. | ||
// */ | ||
// public String getReference() { | ||
// return reference; | ||
// } | ||
//} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't it better to have a test for this? I am not a big fan of Java asserts....